Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Making a Text Field Required if User Checks box

Avatar

Former Community Member
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";

}
2 Replies

Avatar

Former Community Member
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

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