Hello
I'm trying to use the before render field from code pack on a site form for event registration that sends an email to the user.
I assign new values to some of my fields in the site form, like:
$fields['gbr_workshop_anmeldung_ort']->value = $address;
where gbr_workshop_anmeldung_ort is a textarea.
But the new value is not being rendered in the form. I only see the label of the field, the value is empty.
If I do
echo $fields['gbr_workshop_anmeldung_ort']->value;
in the before render field code, the value gets displayed.
In the description of the Code Pack plugin it says:
If you assign this field on admin or site form this code will be executed before to render the form.
The code is being executed but the new values are not being rendered in the form.
Also the new value is not transferred to the email text placeholder #gbr_workshop_anmeldung_ort#.
How can I render the newly assigned value in the site form and email text?