I want to have a picklist with 2 items, and when the user selects one, an
event is triggered to show the corresponding field (the other one stays
hided).
I have setup a static list (string) with 2 entries (selectRoleOrGoR2). One
of them is "role". In the event property of this control box I have an
event fired. The two other control boxes are triggered by this event
(onselectRoleOrGor2) and check the value to decide to show up or stay
hided.
I keep getting below error. Do I miss something?
Gr Sander

Role: An error 'Field selectRoleOrGoR2 not found or not instantiated yet'
was encountered while executing the script 'var val =
form.getValue("selectRoleOrGoR2"); if (val == "role") { field.show(); }
else { field.hide(); }'
selectRoleOrGor2: An error '[object Error]' was encountered while
executing the script 'field.fireEvent("onselectRoleOrGor2")' (Field
selectRoleOrGoR2 not found or not instantiated yet)
Unrecoverable error during asynchronous call (Field selectRoleOrGoR2 not
found or not instantiated yet)