Hello,
I have read data into an array "C" in the Load event, in order to populate a dynamic dropdown. Then I render the html, the user fills the form and selects the item from the dropdown, and clicks submit.
However I want the contents of the array to be present in the Submit event, so I placed a hidden field with the field name C[] on the form, expecting that this would automatically retain a copy of the array C in form->data.
But this didn't happen - the array doesn't persist and the hidden field remains empty.
The workaround is easy enough - read the data in again - but why is it necessary to do that?
Or am I missing something simple...as usual...
Cheers
Tim
I have read data into an array "C" in the Load event, in order to populate a dynamic dropdown. Then I render the html, the user fills the form and selects the item from the dropdown, and clicks submit.
However I want the contents of the array to be present in the Submit event, so I placed a hidden field with the field name C[] on the form, expecting that this would automatically retain a copy of the array C in form->data.
But this didn't happen - the array doesn't persist and the hidden field remains empty.
The workaround is easy enough - read the data in again - but why is it necessary to do that?
Or am I missing something simple...as usual...
Cheers
Tim