-
- 183 Posts
Hi
In my registration form I have to fields "first name" and "last name". I don’t want the user to enter his fullname again. So I tried to use a preHook snippet which will generate the fullname property out of these two fields:
$firstname = $scriptProperties['fields']['firstname'];
$lastname = $scriptProperties['fields']['lastname'];
$scriptProperties['fields']['fullname'] = $firstname.' '.$lastname;
Unfortunately the user’s fullname isn’t set to the generated value.
By the way how can I avoid saving the first and last name in extended fields? Is there away to provide a kind of "ignore fields list"?
Regards
Add-On to easily manage your multilingual sites:
Babel
-
- 183 Posts
Thank you once again! (I like this forum!!!)
Add-On to easily manage your multilingual sites:
Babel