populate hidden field with other data field

livingwebstudio 17 Oct, 2015
Hi everybody,
I need help.. I have form registration in chronoforom with the fields "name" and "surname": is it possible to have in hidden filed the value "name surname"?
joomla registration ask only "name" but I want to store all the information .. is it possible?
GreyHead 17 Oct, 2015
Hi livingwebstudio,

You can add a Custom Code action in the On Submit event and move it up before the Joomla! registration action. Add code like this:
$form->data['full_name'] = $form->data['name'].' '.$form->data['surname'];
Then use full_name in the Joomla! registration action.

This topic is locked and no more replies can be posted.