Dear Bob,
me again.
After having a lot of fun generating easy forms I come up again with a question:
I like to add a picture in a form.
The path including the file name is in a field of a record.
I load in the action the record and show the html.
between the fields of the form I add on the place for the picture a user action with only code.
There I add if (!empty($form->data['xy'])) {.....}
I check in the db that the field has a value '/bla/bla/bla/pic.jpg'
But every time the code is not called.
Trying print_r($form->data['xy']) brings an empty value.
How can I access the record value?
Best regards
Thomas
me again.
After having a lot of fun generating easy forms I come up again with a question:
I like to add a picture in a form.
The path including the file name is in a field of a record.
I load in the action the record and show the html.
between the fields of the form I add on the place for the picture a user action with only code.
There I add if (!empty($form->data['xy'])) {.....}
I check in the db that the field has a value '/bla/bla/bla/pic.jpg'
But every time the code is not called.
Trying print_r($form->data['xy']) brings an empty value.
How can I access the record value?
Best regards
Thomas