makes the other required fields

If I select a checkbox, I want to do a drop down field required.

Use this code as the mouse script to the top of the box (adjust the name of the field in the code to match real field name in your file):

this.getField("Dropdown1").required = (event.target.value!="Off");

Tags: Acrobat

Similar Questions

  • How to make a form field validate that it is the sum of the other two fields?

    Hello

    I'm creating a form, and I'd like one of the fields to validate by making sure that this field is the sum of the other two fields of the form.  Anyone have any ideas on how to go about it?  I know that I need to run a custom validation script, but I don't know where to start - I have never made one for before validation.

    Thanks for any help!

    OK, here's a sample script that I hope will clearly demonstrate the general approach. It is intended to be the validation script custom field that the user enters the value which is supposed to be equal to the sum of the other two.

    Custom validation script

    (function () {}

    Get the value that the user entered

    sVal var = event.value;

    If it is empty, do nothing else

    If (! sVal) {}

    return;

    }

    Converts a string to a number

    nVal = + sVal;

    Get the values of the fields in the form of numbers

    var v1 = + getField("text1").value;

    var v2 = + getField("text2").value;

    Add them together, rounded to two decimals, converting to the number

    var sum = + util.printf ("%.2f", v1 + v2);

    Compare the value of the sum of the other two fields

    Change the user if they do not match

    If (nVal! == $) {}

    App.Alert ("the value entered does not equal to the sum of text1 and text2. Please correct. «, 3) ;

    If you want the value entered was rejected, include the following

    Event.RC = false;

    }

    })();

    Replace "text1" and "text2" with real field names.

  • During the installation process of 6 of Lightroom, I get a box that says: Windows Vista not supported.  I have Windows 7 with Service Pak1. I meet all the other requirements listed.

    During the installation process of 6 Lightroom, I get a box that says 'Windows Vista not supported'.  I have Windows 7 with Service Pak 1.  I meet all the other requirements listed.  Any ideas?

    Hi Chuck,

    You can check out the link below.

    trying to install lightroom 6 on windows 7 continues to receive operating requirement not met windows vista not supported

    Hope this will help you.

    Kind regards

    Hervé Khare

  • How to show the asterisk, required fields in a row of the table?

    Hi people,

    To show the asterisk (*) required fields in a form, I used to give required = "true" for the component and surround the component with an af:panelLabelAndMessage for which I put showRequired = 'true '. How to proceed for a component in a table row. For an element in an array, there is no label itself. The required = true flag in the appropriate error message of component shows, saying that it is necessary, but there is not (*) for this component.

    Thank you
    Vishal

    Table does not have any mandatory attribute. But the column has the property of showRequired. You can used this. If the column has text input then also you put true required on this component. And set your required messages here.
    It can solve your problem

    Thank you
    Prateek

  • Make it a required field based on entry into another area

    So I did search the forum for answering the question of how do some fields in a required form if a value is entered in another field designated and not required if no value is entered in the corresponding field.

    For example:

    There is a field called QTY_paper, and if a value is entered in QTY_paper, then the PROGRow1 field should be required.

    If no value is entered in QTY_paper, then PROGRow1 is not necessary.

    I tried both FormCalc and Javascript, but without any result. In FormCalc, I added this script as a mouseExit on QTY_paper event:

    If ($.isNull == 0) then

    Make the required field
    PROGRow1.validate.nullTest = 'error ';
    endif

    and then I added this script in FormCalc to mouseExit on PROGRow1 event:

    If ($.isNull == 0) then

    $. validate.nullTest = "disabled".

    endif

    This happened almost word for Word from another post on the forum, so I think I'm missing something obvious here... which is weird because I'm still pretty new by adding scripts. Please help if you can!

    Yes a lot of dynamic things is not taken in charge in static PDF files, stuff works and many do not work. What a pity that you can not rebuild the form.

    While the border color does not change, the field can still be getting the required value, and so it can still work as a required field.

    The other alternative would be to make all fields and scripting in Acrobat.

  • Do one or the other required

    Is it possible to have a required field that is associated with another field so if you do not enter something in the field, you must enter something in the other field?

    In the first text field Validate event, you can use the following JavaScript code:

    Custom validation script

    getField("Text2").required = event.value? false: true;

    Replace "Text2" with the name of the second field that you want to be the first field is empty.

  • [ADF, JDev12.1.3] Form based on EO VO istance basis: which is the best place where to score the extra required fields?

    Hallo,

    I created a form of a base EO VO istance.

    The EO has auto-marqué as asterisk fields in the db table on which it is based.

    Self-validation as happens on these fields, but I want to force the user to fill in the other fields.

    What is the best blace where to add other fields of cumpolsory?

    So far, I did it in the attributes of the OS... but I would like to know if it's OK.

    Thank you

    Federico

    Yes, this is logical job for each line that is the place to mark the attribute as mandatory.

    In this way, the validation is done as for the other attributes.

    Timo

  • Buttons to lock the other interactive fields after a click. Known issue?

    Hi, I'm new to editing pdf forms and made my own experiences here and found this problem.

    It started after 10 or if the actions buttons with the mouse, some even with simple javascript added to it.

    After clicking on a button (not with action "hide a field" tied to it), all interactive fields (even the same buttons) throughout the document becomes impossible to edit (no matter if they are in number, text, radio, other buttons, list boxes...) when you click, the arrow hits flashes very briefly, followed by the de-selection of the box. The same 'lock' does NOT occur when you click on the other form of boxes such as checkboxes (more than 20) or radio (the file has 3 sets of those) or the one of / increment of keys other fields with javascript.

    The only way around it I found was to close and reopen (player) or (editor), switch between edition/visualization tools.

    While the editor, it's a minor annoyance for users of forms complete thanks to a reader, it's pretty horrible. Really, I would like to know if there is a way to avoid this.

    Is this a known issue? Anyone have a solution or an idea which continues? Impossible to find anything like that around the navigation there must be something about my edit...

    Thank you!

    EDIT: Specifically, I reduced to buttons that have the action to hide. (And it's quite a decent feature for what I am building here, so different solutions than "don't have not the buttons are hidden when the click on" would be much appreciated.)

    Hi, thanks. After trying many things, I found a work around that, this time, is quite good.

    Well actually, it's the same thing as establishing a mouse "hide", but a different code path.

    I have set up an action, mouse, executes Javascript:

    var l = this.getField ("buttonX");

    w.Display = display.hidden;

    He made all his other click on operations, and the code js it hides. And the other fields are to be filled / clickable.

    On the error itself, perhaps something with versions... I noticed using different readers/editors, everyone behaved differently...
    But it's done, if someone comes to this impasse, try this, worked for me (God bless js)

  • How to remove the error required field in a table

    Hello

    I block in table form, the the first element required property is set to Yes, so when I open the form and click on the first item to enter data in the first row and then move to the second and later decides not to enter the second line of data and, he asks is a required field. How to handle this.

    forms of Oracle 10 g 2.

    After the form open, you can able to see the main features to find the key to cancel the input query mode then press this button to cancel the mode of input query.

  • 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 have two text fields, where the user will sign a text field and the other text field should be mandatory

    I have 2 text fields, and how can I do a condition when the text 1 field is entered, then they must enter data into the text field 2.  I know it seemed simple, but I'm just a beginner in this... Thanks in advance!

    Hello

    I'm sorry, I forgot this matter.

    Please try this code...

    If (this.isNull)

    {

    TextField2.validate.nullTest = 'error ';

    }

    on the other

    {

    TextField2.validate.nullTest = "disabled";

    }

    Hope than that,

    S, candy.

  • Make it a required field based on another field

    I am creating a form, so that when a check box is selected, then the corresponding date field is required.  I put the Javascript scripting language and entered this script:

    If

    (this.rawValue == '1') (PROPOSALDATE.mandatory = "error")

    However, I get an error message indicating "near toekn syntax error '!' on line 1, column 20.»  There is not! in this script, so I don't know what he's talking about.  What I am doing wrong?

    Hello

    The script that runs if the statement is true should be inside the curly brackets. Thus, the following text in the click event of the checkbox should work:

    if (this.rawValue == "1")
    {
         PROPOSALDATE.mandatory = "error";
    }
    else
    {
         PROPOSALDATE.mandatory = "disabled";
    }
    

    The foregoing is Javascript.

    Hope that helps,

    Niall

    Ensure the dynamics

  • Make it a required field? Not part of the quiz.

    Hello, I don't see an option for this. I tried Googling, but I get no relevant results.

    In all the properties on the right side, the only one I see that would come close is "validating user input". But it's only against the words that I chose, I make sure they enter their name in the user name box if I can use their name throughout my presentation. It's Captivate 5.

    Thank you

    Hello

    You want to only check whether something worthwhile has been entered in the field? Don't not to check if it was the right name?

    If this is your question: a variable user a link to the text entry area. I'll label it v_name if you don't know how, I have explained in this blog:

    Create a user variable while creating a TEB

    It is a possible workflow:

    • Start by defining the contents of the variable to something that can never be a name. You can make it into something assigning entering the slide, or putting a default value in the variable definition (I prefer the first way, because it will be less confusing for the user).
    • When the user clicks on the submit (BER) or use the shortcut key for the opening of his typing, bind an Advanced button action "submit":
      • checks if the variable v_name is different from content, he had
      • If Yes, go
      • If not: rewind the playback head, display a text caption that insists on entering a name

    Lilybiri

  • Make the obligatory comment fields

    Hey BC community.

    Any of you have a client to request that the comment fields be mandatory? I know that they are subject to the approval of the content, but he asked.

    Any help would be appreciated,


    See you soon,.

    Pat

    Hello Pat,.

    The feedback form using the validation as well as any other form. You just need to add the if statement for the correct field, you want to be required.

    So for the full name text entry field, you have to add this:

    • If (theForm.fullname) why += isEmpty (theForm.fullname.value, "Full name");

    Then for the email address:

    • If (theForm.EmailAddress) why += checkEmail (theForm.EmailAddress.value);

    Add them on top of the captcha validation and keep it just like any other form. You can clean the code of validation with http://jsbeautifier.org/

    Here is an example:

    http://BCG-sandbox.hotpressplatform.com/_blog/blog/post/nope_this_one_is/

    Hope this helps,

    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • How common the like required field at the level of the user interface

    Hi all

    How to set the field as mandatory at the level of the user interface.

    Thanks in advance
    C.Karukkuvel

    Set required = "true" on any input component.

    Pedja

Maybe you are looking for

  • Canon Mp640 BSOD

    My new Canon MP640 gives a BSOD on Canon all software application but 3rd party software is OK, prints OK from the office, scans OK with Omnipage, print photos from Photoshop, I tried to download the latest drivers from Canon-same problem. All the wh

  • HYPERLINKS IN EMAILS RECEIVED

    Good afternoon WHEN I CLICK ON A HYPERLINK IN THE BODY OF N RCIVED SEND IT BACK IS NOT OPEN IN INTERNET EXLORER.  IT SERVES the South Africa Patricia

  • Unable to make a copy of an image

    After installing windows 10 and then back to 7, I am more able to make copies of my photos.  The desktop icon I have for the shortcut of photos has a top lock. How can I fix it?

  • Connection of 10 x SFP - 10 G-SR-S to an Interface of 1 G

    Hello I have a router ISR4451-X, which comes with 4 x 1GE interfaces, and I want to connect it to a switch C4500-X, which comes with 16 x 10 G interfaces. I use SFP - 10 G-SR-S on the C4500 and want to know what SFP module, I need to use on the ISR44

  • Properties of the printer in Windows 8

    I'm on Windows 8 with an HP printer. I can change some printer properties, but not all. For example, I can only print in color, but not in mode B & W. I used to run this same computer and printer in Windows 7 without problem. Why can I not see the pr