• 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: How to make default Name field hidden

How to make default Name field hidden 4 years 5 months ago #39582

  • azurelink
  • azurelink's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 29
  • Thank you received: 3
Is it possible to change the default Name field on the RSForm Pro registration form to a hidden one and populate it from the values entered from other custom fields, e.g., Firstname, MI, Lastname, using the placeholders?

I need those separated so I can sort users by last name, etc.
Last Edit: 4 years 5 months ago by azurelink.
The administrator has disabled public write access.

How to make default Name field hidden 4 years 5 months ago #39584

  • azurelink
  • azurelink's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 29
  • Thank you received: 3
Well, that turned out to be both complicated and simple, ha ha.
Ended up having to make a new hidden text field called "fullname" and put "Your Name" in the default field.

Then I added this script to the form's Form Properties/PHP Scripts tab in the "Script called on form process" section:
if(empty($invalid)){
$_POST['form']['fullname'] = $_POST['form']['firstname'].' '.$_POST['form']['lastname'];
}

Those are my field names. You need to use yours.
I tried it with a middle initial fieldname section too, but something wasn't working so I removed it from the above.

Works on Joomla 3.9.12 and RSForm! Pro 2.2.6!
Last Edit: 4 years 5 months ago by azurelink.
The administrator has disabled public write access.
The following user(s) said Thank You: jami

How to make default Name field hidden 4 years 5 months ago #39585

  • azurelink
  • azurelink's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 29
  • Thank you received: 3
I got the above code from near the bottom of this thread:

www.rsjoomla.com/forum/37-rsform-pro/142...ast-name-fields.html
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!