Making a Text Field Required if User Checks box

Avatar

20-03-2008

Hi,

I am currently using Adobe Designer 7.0, and am trying to make a text field required if a user clicks on a check box above the text field.

I have the following code for the check box (on Change) but it doesn't appear to be working!! Any suggestions??

Thanks!



if (this.rawValue == 1 ){

TextField7.value = "User Entered - Required";

}



else {

TextField7.value = "User Entered - Optional";

}

Replies

Avatar

Avatar

Andreas_Petri

Avatar

Andreas_Petri

Andreas_Petri

30-09-2008

Hi Krisitan,



you are trying to change the value of the field instead of it's accessability.



Try this:



if (this.rawValue == 1 ){

TextField7.mandatory = "error";

}

else {

TextField7.mandatory = "disabled";

}

Avatar

16-12-2008

Does this work in LiveCycle 7.2, and where is the documentation on this?