At least one field completed to submit
hi,
i have form 3 text fields values set required . @ least 1 of fields must completed in order email submit button function.
is there script change required fields optional field values when @ least 1 of 3 contains data?
thanks,
eric
hi eric,
just can keep code in 1 place, wrap 3 fields in subform , have javascript code in subforms calculate event;
if (textfield2.isnull && textfield3.isnull) {
textfield1.mandatory = "error";
} else {
textfield1.mandatory = "disabled";
}
if (textfield1.isnull && textfield3.isnull) {
textfield2.mandatory = "error";
} else {
textfield2.mandatory = "disabled";
}
if (textfield1.isnull && textfield2.isnull) {
textfield3.mandatory = "error";
} else {
textfield3.mandatory = "disabled";
}
regards
bruce
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment