Joomla User Registration

totolabs 23 Apr, 2012
Hi all

I'm at work with a new joomla user registration form using chronoforms.

Everything works well, but I have an answer:

if in my new registration form there are 2 fields like "name" and "family_name", can I send these 2 fields to "Name field name" of Joomla User Registration function?? (e.g. could be something like "name"&"family_name").
I tried to put "name family_name", just with a space, and it doesn't work.

Thanks in advanced,

Antonio
SilentCid 23 Apr, 2012
I'm no where near a pro at this and haven't been using CFv4 all that long. I hope this will point you to the right direction. Again not a pro so I have not tested this out.

I believe you can try this PHP code on submit and see if it works for you.

$fullname  = '';  // full name field
$fullname  = $_POST['name1']." ". $_POST['family_name'];

<input name="name" type="hidden" value="<?php echo $_GET['$fullname'] ?>" />
GreyHead 30 Apr, 2012
Hi totolabs ,

Hmmm silentcid's answer is close but I don't think it will quite work. Please try this in a Custom Code action before the Joomla! User Registration action.
<?php
$form->data['name'] = $form->data['name1']." ".$form->data['family_name'];
?>

Bob
totolabs 13 May, 2012
Thanks Silentcid and Greyhead.
Unfortunately I tried your codes only today: the second, greyhead's one, works like a charm!

Thank you very much for your help.
This topic is locked and no more replies can be posted.