• 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: RSEProName with First- and Lastname

This message has been removed by user's request. 10 years 2 weeks ago #31028

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

RSEProName with First- and Lastname 10 years 2 weeks ago #31051

  • bogdan.tataru
  • bogdan.tataru's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 174
  • Thank you received: 40
You can easily achieve this with two text fields, some CSS and Javascript. You can create a new form or use the existing one, but if you add a new one don't forget to select it from your Event Registration section. (Components >> RSEvents! PRO >> Events >> Your Event >> Event Registration - Registration Form)

More about RSForm!Pro - RSEvents plugin here: www.rsjoomla.com/support/documentation/v...ormpro-rsevents.html

So, head to Components >> RSForm! PRO >> Manage Forms select your form and add two Required text field components: First Name and Last Name.
On Properties tab of your form in the CSS field add the following style in order to hide the default Name field and its caption:
<style>
.rsform-block-rseproname{display:none;}
</style>

In the Javascript field add the following function that will put the values of First Name and Last Name in the default Name field:
<script>
function myFunction(){
 
document.getElementById("RSEProName").value=document.getElementById("First Name").value +" "+document.getElementById("Last Name").value;  
}
</script>
Notice that if you add other names for the fields you have to change the "First Name" or "Last Name" with your own.

This function should be triggered by the submit button so on its Attributes tab -> Additional Attributes add
onclick="myFunction();"
My help is not official customer support. To receive assistance, submit a ticket by clicking here
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!