Iterate over all form elements that have options (e.g. 'select' type elements), also iterating over nested form element (e.g. page elements).
'select'
formElementsService.forEachFormElementWithOptions( form.elements, (formElementWithOptions) => { // do something with formElementWithOptions },)
The form elements to iterate over
Function to execute on each form element with options
Iterate over all form elements that have options (e.g.
'select'
type elements), also iterating over nested form element (e.g. page elements).Example