Hi, is there any (supported) way to set form field values, inside a Custom Code action, put in the OnLoad event?
I've tried this but cannot find what properties of the $form object should I set.
Finally I've solved putting my code in a Custom Element, that initialize a my own array, and setting the default value of fields with the form <?php echo $array['name']; ?>. I found this solution in this post (thank you!):
How to automatically fill out fields for registrated users
PS: there is documentation how to access the $form object inside Custom Code?
I've tried this but cannot find what properties of the $form object should I set.
Finally I've solved putting my code in a Custom Element, that initialize a my own array, and setting the default value of fields with the form <?php echo $array['name']; ?>. I found this solution in this post (thank you!):
How to automatically fill out fields for registrated users
PS: there is documentation how to access the $form object inside Custom Code?