I have a table with multi rows with some of the field 'required'. However not all the rows will necessarily be populated.
(How) Can I make the required fields dependent on the initial field being filled in?
E.g. name; address; ss no; phone no; dob
If name is filled in, address and dob are 'required' but not the other fields.
You would add the following to the Format event of the initial field in the row:
if (event.value != event.target.defaultValue) {
this.getField("dependent1").required = true ;
} else {
this.getField("dependent1").required = false ;
}
assumed that your field to make required is named "dependent1".
You repeat the setting and resetting line for all fields that you want to be required.
Hope this can help.
Max Wyss.