If/then statement with hidden fields

Avatar

Avatar

Gene--O

Avatar

Gene--O

Gene--O

03-02-2012

I have a form with a drop-down field that has 3 possible values (Today, Tommorrow, Next Week). Below this drop-down field is text field (TextField10) that needs to be filled out by the user ONLY if "Next Week" is selected in the drop-down. I would like for TextField10 to be hidden unless "Next Week" is selected.

For TextField10, I have "this.presence="hidden" written into the initialize event so it is hidden when the user opens the form. This works.

For the drop-down field, I have:

if (this.rawValue == "Next Week") then TextField10.presence = "visible";

     endif

written into the exit event in FormCalc. I need this in FormCalc because I have many other scripts in the exit event already written in FormCalc and I don't want to have to change all of them. I have checked "Specify Item Values" in the Binding Tab of the drop-down field.

Would someone please tell me what I am doing wrong. TextField10 is hidden, but never appears no matter what I select in the drop-down field.

thank you for your help!

Gene-O

View Entire Topic

Avatar

Avatar

JainSa

Avatar

JainSa

JainSa

06-07-2018

Hi ,

May i need one help.!

i was created one Text field and then binding the data .

in Binding Field the User Does not Enter the Value .?

How to show  N/A in created text field.