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.

Tags: Adobe LiveCycle

Similar Questions

  • 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 a mandatory DFF field based on another field

    Hi all

    We have a requirement where we need to do a mandatory DFF field based on another field.

    example:

    FDF has two fields:

    Depose1: the values 'Email', 'Fax '.
    Depose2

    If "Email" is selected in 'Field1' Field2 should become mandatory.

    All entries on this will be really useful.

    Thank you and best regards,
    Satya.

    Please see old topics that cover the same subject - http://forums.oracle.com/forums/search.jspa?threadID=&q=DFF+AND+mandatory+ANd+Dependant&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001

    Thank you
    Hussein

  • 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

  • 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");
    
  • I need to make a required field 'A' if the user selects "OFF" in a ON / OFF dropdown

    I need to make it a required field 'A' if the user selects 'OFF' in a drop-down list box ON / OFF.

    Ideally, I would like to make several required fields - A, B, C, D, but I limit myself to one if someone can help me please.

    You must run a JavaScript script for action 'the blur '.

    If (event.value == "OFF") {}

    this.getField("A").required = true;

    this.getField("B").required = true;

    this.getField("C").required = true;

    } else {}

    this.getField("A").required = false;

    this.getField("B").required = false;

    this.getField("C").required = false;

    }

  • Hi, PDF form of the guru. How to make a text box become a required field IF a drop-down list is selected as the "Yes"?

    Hi, PDF form of the guru.

    How to make a text box becomes a "required field", IF a drop-down list is selected as the "Yes"?

    and 'not required' if the drop down menu selected as 'No' or left blank.

    Any help would be greatly appreciated

    see you soon

    Use this code in the custom drop-down list field validation script:

    this.getField("Text1").required = (event.value == "Yes");

    (Change "Text1" to the actual name of your text field, of course)

  • How do fill you a text field based on the entries in other text fields?

    I would like to be able to have a text field that fills as 'Full' or 'Incomplete' based on the question if all required fields have been filled or not.

    For example, if the "First Name", "Last Name" and "City" text fields are not filled, the text of "the State of completion" field displays 'Incomplete' and once they are filled, the text of "the State of completion" field will turn into "Complete".

    How can I do this using javascript? I searched the web for a tutorial, but most of the results seems to be focused on the menu drop-down.

    Please point me in the right direction!

    Try the script below. I put this on the calculate for Field1 event

    If (FirstName.rawValue == null |) LastName.rawValue == null | City.rawValue == null) {}

    Field1.RawValue = "incomplete."

    }

    on the other

    Field1.RawValue = "complete."

  • How can I make a button to be interactive so when its checked or clicked, the next tab fields become required field?

    I'm trying to create a form that contains a button to select a credit card or check.  When someone chooses the credit card, I need to become a required credit card information fields.  In the contrary case, it they select check, all the fields of credit card (number, exp. date, security code...) to be non-mandatory field.

    Why use a button. If you have a checkbox or a radio button, you can use the available actions for one of these fields to adjust the properties of the fields depending on what widget in the Group has been selected that can be to make the required, visible and required fields and then reset/clear the other group of fields, do so in read-only and disabled the requirement.

  • Make sure that "required" before "Signature" AND check that "signature" is completed before you 'submit', the fields are comeplete


    The people there, I am fairly new to create forms but starting to get the hang of it.

    I'm trying to make sure that when people sign my form fields that I put as 'compulsory' are comeplted. Currently my form does not :-(

    I have a "submit" button at the bottom of the form that I set up to E-mail the form validated at a defined person, however, I want to make sure when you press this button, there is a check to ensure that the form has been signed and that the 'required' fields have been comeplted.

    Ideas are very welcome!

    Thank you

    Chris.

    Apologies! Thank you very much for your help! The code you posted earlier, I found is:

    var emptyFields = [];

    for (var i = 0; i)

    var f = this.getField (this.getNthFieldName (i));

    If (f.type! = "button" & f.required ") {}

    If ((f.type=="text" && f.value== "") |) (f.type=="checkbox" && f.value=="Off")) emptyFields.push (f.name);

    }

    }

    If {(emptyFields.length>0)}

    App.Alert ("error! ("You must fill in the following fields: \n" + emptyFields.join ("\n"));

    }

  • 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);
    }

  • I accidentally entered my password in the field 'user ID' a website connection, and pre-populating it now appear in the list of suggestions for that field. Is there a way to make the pre-fill 'forget' a specific entry?

    While connecting to a secure Web site, I was typing too fast and accidentally included my password in the field ID used while connection and press enter before I realized my mistake. I then connected properly, but now Firefox include this false entry (with another entry accidentally misspelled) in the list of suggestions of pre-filling every time I go to this page. I prefer not to cut completely from pre-filling, but obviously I don't want my password to be specified. Can I delete the wrong entry in the list of suggestions as pre-filling watch somehow? (I use Firefox 6.0 on Windows 7)

    Select the entry in the drop-down menu and press "DELETE", Mac users, press 'Shift + Delete '.

  • How can I make a radial box group a required field in a form?

    My form has yes/no questions that I want to demand an answer. I created a radial button group. How do I make a file required on the form?

    Thank you.

    Kay

    If you use HTML5 forms, you can simply add '' necessary '' to one of the option buttons in each group...

  • Make a required field if another field has a value

    Hello

    I have created a PDF form and I need to have a validation that checks if a field has a value, then another field is mandatory.  For example: If the hours of field has a value, then the Description field is mandatory, otherwise, Description field is not mandatory.  Any help you can provide would be helpful.

    Thank you.

    As a script custom validation of the hours field, enter this code:

    this.getField("Description").required = (event.value! = "");

  • Required fields

    Given:

    form with several fields of text entry.

    the value of LOV some fields becomes invalid - not required for the operation.

    To submit:

    pl/sql procedure takes values of all the elements and, based on the values passed did he magic.

    Problem:

    required fields are marked as "required" in the apex. When LOV disables them, of course, they have a value, and a problem during "submit page" (e.g..

    "First Name must have some value. »).

    I'm hesitant to mark all items as 'non-compulsory' unceremoniously since all the elements are necessary (when they are activated by LOV) and the Red "*" is a good way to remind a user to enter a value.

    What would be a better solution?

    hope it makes sense

    P.S. help to 'Value' for the element leads to believe that 2 conditions must be met so that automatic checking of ' not null ' kick - point must be visible and '' necessary '' status = "YES". This is not true. required = yes and "point invisible triggers still control null nit.

    AZZ,

    You can set the attribute 'Required value' = 'No' and let the model as "Necessary", it will show the "*" when the element is visible. Then you can create a new type Validation "IS NOT NULL" to a Condition of ' Item = value '.

    Thank you

    Erick

Maybe you are looking for

  • Why ios homekit 10 automation of location ask run and not only run when I go home?

    I have setup the location based automation open my door when I get home. However, my phone always ask me before his execution the scene I put in place... Why does it just run based on the location?

  • Touchmonitor 8 certified Windows

    I want to upgrade my desktop PC with a touch screen computer monitor that is (or will be) certified for Windows 8. HP has products?

  • HP EliteBook Folio 1040 G3: Two monitors for HP Elitebook Folio G3

    I have a HP Dock Connector to VGA and Ethernet adapter (http://store.hp.com/UKStore/Merch/Product.aspx?id=G7U78AA & opt = & salt = VAC) I use to connect my laptop to an external monitor (HP ProDisply P221) and the network cable. Now, I want to plug o

  • HP Compaq 6000 Pro SFF Win 7 Pro 64-bit

    Need help installing RAM. 2 GB PC #-10600U 1333 Mhz supplied with computer. I try to install Crucial 8 GB DDR3 1333 mhz p/n ct102464ba1339.c16fedI put the new key in the black slot and the jury returns 5 beeps and a red front end light. I tried that,

  • Compatibility: FCPRO7 and el Capitan

    I had problems with Final Cut Pro 7 since I've upgraded to El Capitan. (Version 10.11.3) First of all, FCPRO kept crashing. Then he worked for a while. Now I can't open at all.  I am in the middle of a vast project of edition and would really appreci