Couple of reasons make this problematic. Form automatically validates its fields. One can switch off this validation but need to keep in mind to switch validation back on for non JS submissions.
The other area which is tricky is that all dynamic fields must be added in the Page onInit event in order to be processed properly. One can invoke field.bindRequestValue to query the field's value, but bindRequestValue doesn't properly check whether or not its parent Form was submitted.
I propose we add a couple of helper methods to Form and Field to make this process smoother eg:
boolean field.bindAndValidate(); <- will return true if the field is valid, false otherwise
boolean form.bindAndValidateFields(); <- will return true if all fields are valid, false otherwise
|Field||Original Value||New Value|
|Fix Version/s||2.2.0 [ 12314164 ]|
|Affects Version/s||2.1.0 [ 12313730 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|58d 27m||1||Bob Schellink||02/May/10 03:07|