Am using this code to require entry in a field if selection #30 is chosen from a drop-down. In testing it works but only after I select things twice, it seems to also need to refresh/clear out the values before it will make the field required. Example if I select any other choice the email goes ok, and the first time I select #30, it goes through, but if I select #30 a 2nd time, I get the pop-up message telling me at least one of the required fields has not been completed . . . . which is a 2nd part to this question. Is it possible to tell the person which field is missing data, or automatically place the cursor in the field? That is not as critical as the refreshing part. Thank you!
if
(this.rawValue =='30'){
Q11_Comments.mandatory
= "error";
}
else
{Q11_Comments.mandatory
= "disabled";
}
North America
Europe, Middle East and Africa
Asia Pacific