• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Split "Full Name" in "First Name" + "Last Name"

Split "Full Name" in "First Name" + "Last Name" 12 years 2 months ago #21321

Hi,

Here is my problem. I have linked RSEvent with RSForm to have the full system online that allows people to register to my Event and receive a confirmation mail with PDF containing a BARCODE.

My problem is that in order to have RSEvent work with RSForm, i have to put RSEvent Component fields in my RSForm which are "Name" and "Email".

The fact is that "Name" means First Name + Last Name and it pushes the people to put e.g.: "John Kerry" in the same box so in my subscribers list, i can't separate the First name from the Last name in my database which is something very important if i want to sort the subscribers by Last Name for example or have the first name and last name in 2 separated columns.

Is there any possibility to split the RSEvent "Name" field in in 2 separated field ?

Thanks for your support.
The administrator has disabled public write access.

Split "Full Name" in "First Name" + "Last Name" 12 years 2 months ago #21327

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Hello,

Can you please be more precise on where exactly do you need to have this information (first and last name) listed separately ?

If you simply need this within the RSForm!Pro Manage Submissions area, then a workaround might be available:

- simply add two regular RSForm!Pro text boxes
- add the RSEvents!Pro name field
- hide the regular name field
- use a small script to assign the values type in the first and last name fields to the RSEvents!Pro one.

If you actually need this within the RSEvents!Pro > Subscribers area, then advanced source code modifications will be required.

PS: Official customer support is provided via our specialized ticketing system, not on the forum:
http://www.rsjoomla.com/support.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
The following user(s) said Thank You: olivierhicham

Split "Full Name" in "First Name" + "Last Name" 12 years 2 months ago #21330

Thank you for your feedback Alexp.
I have indeed created as following :
- RSEvent Pro Name form "First Name" (visible)
- RSForm Pro form "Last Name" (visible)
So in the RSForm Pro Database now it's perfect but in the RSEvent database, only the "First Name" appears in the subscriber column.

As i am a real beginner, can you provide me with this small script to "assign the value of first and last name to RSevent Pro one" ?

BR
The administrator has disabled public write access.

Split "Full Name" in "First Name" + "Last Name" 12 years 2 months ago #21541

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Within the "Scripts called on form process area", use the following script:
if(empty($invalid)){
$_POST['form']['RSEProName'] = $_POST['form']['name of firstname field'].' '.$_POST['form']['name of lastname field'];
}
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

This message has been removed by user's request. 12 years 2 months ago #21552

  • 0be1d46fa4c0ccd1d191335453b1716b@RSJOOMLA_DELETED
  • 0be1d46fa4c0ccd1d191335453b1716b@RSJOOMLA_DELETED's Avatar
This message has been removed by user's request.
The administrator has disabled public write access.

Split "Full Name" in "First Name" + "Last Name" 12 years 2 months ago #21563

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Edit your form, click on the top "Properties" button > "PHP Scripts" and it's the second textbox.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Split "Full Name" in "First Name" + "Last Name" 12 years 2 months ago #21622

  • IanM
  • IanM's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Hi,

Sorry to post off topic here but could you please tell me how you are including a barcode? This is something I've been searching a long time for?

Thanks
The administrator has disabled public write access.

Split "Full Name" in "First Name" + "Last Name" 12 years 2 months ago #21673

Same here Ian,
this is why I bought this component and it works well.
elect yes Attach to the Activation E-mail? at the top of the ticket layout in the event settings.
(select barcode type in the settings of RSEvents) and insert the {barcode} place holder in your ticket.
The administrator has disabled public write access.

Appending to RSEProName doesn't work 12 years 3 weeks ago #22480

  • lrazov
  • lrazov's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
alexp wrote:
Within the "Scripts called on form process area", use the following script:
if(empty($invalid)){
$_POST['form']['RSEProName'] = $_POST['form']['name of firstname field'].' '.$_POST['form']['name of lastname field'];
}

Hi there,

I've used your example and added a similar code into the PHP script section as per your instructions for appending last name to the RSEProName field as I'm using it as first name. But it doesn't work - nothing gets appended. In the admin under submissions I still see only first name in the name field :(

This is what I've done:
if(empty($invalid)){
$_POST['form']['RSEProName'] .= ' '.$_POST['form']['LastName'];
}

Could you help to resolve this?
The administrator has disabled public write access.

Appending to RSEProName doesn't work 12 years 2 weeks ago #22514

  • lrazov
  • lrazov's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Can anyone help please?
The administrator has disabled public write access.

Appending to RSEProName doesn't work 12 years 2 weeks ago #22542

  • jami
  • jami's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 35
  • Thank you received: 4
Try this:
if(empty($invalid)){
$_POST['form']['RSEProName'] .= $_POST['form']['RSEProName'] . " " . $_POST['form']['LastName'];
}
Last Edit: 8 years 11 months ago by jami. Reason: corrected the script to append the last name to first name with a space in between
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!