If a box is how to make a required text field

Hello

I'm hoping someone out there can help me.

I have created a form in adobe acrobat 9, I have one checkbox called 'other' and a field of text called "other_please_specify". What I hope to do is when a user selects the "other" box the text field 'other_please_specify' becomes necessary. I need also some sort of action if a user turns off the "other" box then the text field 'other_please_specify' is required.

Can someone help me understand this?

Thanks in advance

Possibly by that you mean the property of the EmployeeID field, the script of the mouse to the top of the box can be something like:

(function () {

    // Get a reference to the text field
    var f = getField("other_please_specify");

    // Set the required property depending on the check box state
    if (event.target.value !== "Off") {
        f.required = true;
    } else {
        f.required = false;
    }

})();

The 'if' block can be simplified to:

    // Set the required property depending on the check box state
    f.required = event.target.value !== "Off";

Tags: Acrobat

Similar Questions

  • How to make a required checkbox field stop a submission form if not checked.

    Hello

    I have a form needs people to accept both boxes before submitting the form when you click a button.

    I use Acrobat X Pro.

    The form does not present when a required text field is empty, but when the boxes are empty again tries to present.

    How can I work around this problem?

    Thank you.

    You can't do it directly, but there is a workaround solution. Create a (hidden) text field and set it as required. As a custom text field calculation script, enter the following code:

    This.getField("Check_Box1").value = Event.Value == "Off"? "": this.getField("Check_Box1").value;

    This will prevent the submitted document if "Check Box1" is unchecked. The downside is that the box will not be underlined in red when validation fails, but at least the record will not submit partially filled in.

    Alternatively, you can write you own validation script, which can provide a comprehensive report which fields have yet to be filled before submitting the file.

  • How to make the PDF text field to be strikes do not copy/paste from previous text fields?

    Dear friends

    Helps to solve a problem related to the fields of PDF text, please

    Is there a way to make a PDF of the respondent, which ends of fields text to type own text not copy/paste of the previous text fields?

    Thank you very much!

    Copy the following code, used as key event custom field of your field, will prevent to enter more than one character at a time, which means that copy it text from an external source is not possible:

    if (event.change.length>1) event.rc=false;
    

    However, you can inform your users of this restriction, or they think that something is wrong with the file.

  • I need help to make a required text field if a box has been checked, I get a SyntaxError: missing; before the instruction 3: in line 4

    If (this.rawValue is 'Yes')
    {
    App.016Description0.mandatory = 'error ';

    App.017EASAReference0.mandatory = 'error ';

    App.018ComplianceStatement0.mandatory = 'error ';

    App.019SupportingDocs0.mandatory = "error".


    App.016Description0.mandatory.border.edge.color.value = "225,0,0";

    App.017EASAReference0.mandatory.border.edge.color.value = "225,0,0";

    App.018ComplianceStatement0.mandatory.border.edge.color.value = "225,0,0";

    App.019SupportingDocs0.border.edge.color.value = "225,0,0";

    }
    else {}

    App.016Description0.mandatory = "disabled";

    App.017EASAReference0.mandatory = "disabled";

    App.018ComplianceStatement0.mandatory = "disabled";

    App.019SupportingDocs0.mandatory = "disabled";


    App.016Description0.mandatory.border.edge.color.value = "225,0,0";

    App.017EASAReference0.mandatory.border.edge.color.value = "225,0,0";

    App.018ComplianceStatement0.mandatory.border.edge.color.value = "225,0,0";

    App.019SupportingDocs0.border.edge.color.value = "225,0,0";

    }

    Hello

    There are a few differences in the names allowed for a field of XFA and a JavaScript object and having a dot in a name is one of them.  In JavaScript, you need to reference the field as a property of the parent, so if the app.016Description0 field is a parent page 1, then you can use page 1 ["app.016Description0"].

    But I would like to rename your XFA fields.

    Concerning

    Bruce

  • How to make columns of text with adobe muse

    Hi, how to make columns of text with adobe muse (like InDesign)?

    As Brad has already indicated, the columns are a difficulty.

    Set a text box to separate visually in separate (with a nice gutter) columns does not seem so difficult, but the problem lies in how to manage the flow of text in regards to positions, simple lines ugly upstairs and down a column, deliberate column breaks, how to connect to the text of subsequent block etc. The developers of W3C and browser have not yet agreed on this issue. (Look for the clear green statutes in the table: http://caniuse.com/#search=columns)

    As a matter of fact, Adobe has proposed and developed an alternative for wounds and flawed of current columns, at the W3C long meetings: 'Régions' (which could also leave the text to "wrap" around a box or even an irregular shape). But their effort was in vain. ' Technically too much, too soon, to be treated by the mobile browser engines ", was the comment of Google . So the W3C put this contribution on the shelf.

  • How to make multiple "BOLD" text, for example the positions of the scene, or the names of the characters?

    How to make multiple "BOLD" text, for example the positions of the scene, or the names of the characters?

    You can do this by changing the model of the document.

    Open the document, go to Edition-> model. A dialog box will launch that will have some element types on the left and its properties on the right.

    Select Heading (or Character name) stage left. On the right, go to the 'Text' tab and click on the "BOLD" checkbox.

    Press OK.

    I hope this helps.

    See you soon,.

    Sunny

  • How to make the default text size and line spacing in small Sticky Notes?

    How to make the default text size and line spacing in small Sticky Notes

    Hello

    I suggest that you try the method below and check if it helps.

    Method 1: analysis of auditor of file system (CFS)

    System File Checker is a Windows utility that allows users to find corruptions in Windows system files and restore the damaged files. To perform a scan of the SFC, check out the link: https://support.microsoft.com/en-us/kb/929833.

    Note: the steps for Windows 8/8.1, works perfectly with Windows 10.

    Method 2: clean boot

    A clean boot is executed to start Windows by using a minimal set of drivers and startup programs. This will eliminate software conflicts that occur when you install a program, an update or when you run a program in Windows. Follow the link to perform the clean boot: https://support.microsoft.com/en-us/kb/929135.

    Kind regards

    Angelo bar

    Microsoft community

  • How to make windows require a password during the installation of new programs?

    How to make windows require a password during the installation of new programs?

    Hello

    You will not be able to circumvent the password that appears before the execution of actions (installing a new program) in a non administrator account.  If you are logged on as administrator, and again, you get the command prompt, you can disable UAC (User Account Control) to stop the password dialog window.

    However, as a work around you can right-click on the installation of the program files and select run as administrator. Check if this is useful.

    Let me know if I can help you with this question or any problem related to Windows.

  • How to make a required field in OAFramework

    How to make a required field in OAFramework when running? Please explain in detail if possible.

    Thank you
    Kumar

    Get the handle to the bean by using the following Code

    Bean = webBean.findIndexedChildRecursive ("");
    If (bean! = null & )
    {
    bean.setRequired (true);
    }

  • How can we add a text field on the stage, but without the text label?

    How can we add a text field on stage, but without the left text label by default?  I want just the field.

    I thought about it.  Go to the page layout palette and change the options of caption for the text box.

  • How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    Hi all

    How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    There is also a checkbox on the dialog box 'Sign' to lock document after signing.

  • How do I disable a text field or select list when I change record.

    Dear Sir.

    I created the form with the report when I insert the new record, then all ground are able to insert the value in the table.

    Here I want to when I change any folder, then a field as a TEXTFIELD or select list, which I should be disabled in the case of a CHANGE.



    How do I disable a text field or select list when I change record.



    Thank you

    CORINE

    Hello

    Edit the element... There is a Readonly tab... Enter the condition for readonly... for example... Suppose you have a hidden field P1_X for the primary key. To add the new record, this field will be null and for editting p1_x will have the primary key value...

    So you can make the condition as P1_X readonly IS not null...

    Kind regards
    Shijesh

  • How to make the darker text and how to get rid of the ads on my toolbar

    original title: GI 82 and my text is too light, how to make it darker also how can I get rid of the ads on my toolbar

    Just do my text coming or in your darkest records

    Hello

    1 are you referring to the ads in the Internet Explorer toolbar?

    2. are you referring to the policies of the Internet Explorer icons?

    Method 1: You can change the theme of the operating system Windows 7 high contrast themes that will make the text and the darkest record.

    Follow the steps below to change the high contrast theme.

    1. open Personalization by clicking the Start button, then Control Panel. In the search box, type personalization, and then click customization.

    2. under Basic and high contrast themes, click Windows 7 Basic or one of the high contrast themes.

    Method 2: In order to disable ads in Internet Explorer disable all modules and check if this is useful.

    No add-on, run Internet Explorer mode.

    a. Click Start, point to programs, point to Accessories and system tools

    b. click Internet Explorer (No Add-ons).

    If this resolves the problem, follow these steps to isolate the browser add-on that is causing the problem:

    a. click Tools and then click Internet Options.

    b. click on the tab programs, then click on Manage Add-ons.

    c. click an add-on in the name list and then click on disable.

    d. Repeat step c until you identify the add-on that is causing the problem.

    If this solves the problem, this could be caused by an adware installed as add-on. See the link below for more information.

    http://Windows.Microsoft.com/en-us/Windows/help/Internet-Explorer/slow-five-tips-to-boost-performance

  • How to make a custom text in eSign field?

    I'm doing my custom field in this format: 1234-56-7. I can't figure out how to make this happen by using a custom expression. Any advice or tips? I use a text field with custom regular expression.

    Thank you!

    Hello Lisaw31172184,

    I recommend adding three separate text fields and provide the Maximum character limit in each of them. Here is the reference for help:

    https://helpx.Adobe.com/document-cloud/KB/EchoSign-credit-card-fields.html

    Let me know if you need more information.

    -Usman

  • How to make CSS Rollover text links in Muse?

    In Dreamweaver, we have the ability to apply CSS styles to text links so that it behaves like a roll (changes color on mouseover, etc.). How can we do this Muse? Kind eyes-

    (EDIT): take a look at the menus on the main Adobe website to get an idea of what I want to do.

    Google 'Adobe Muse hyperlink Styles' or see threads like How can I change the text of hyperlink styles?

Maybe you are looking for