• 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: Combine Fields before submitting

Combine Fields before submitting 10 years 3 months ago #30311

For a client i have 3 pages of content including Joomla registration, everything works fine until a second entry. (E-mail already used)

So my solutions is to combine 2 fields before submitting and use that as e-mail to register. (I don’t want a second form) I already have to confirm the entry so adapting the e-mail isn’t the problem.

Example, on the first page the customer filled in a client insurance number and a e-mail. So I want to register “client insurance number + e-mail” as an e-mail.

I already tried this :
www.rsjoomla.com/forum/37-rsform-pro/142...ast-name-fields.html

it won’t work because the registration runs before the combine function
The administrator has disabled public write access.

Combine Fields before submitting 10 years 3 months ago #30316

  • silviup
  • silviup's Avatar
  • OFFLINE
  • Moderator
  • Posts: 309
  • Thank you received: 49
Assuming that your fields are named as follows:

- the client insurance number field is called 'number'
- the email field is called 'email'

you will need to place the following script in Components >> RSForm!Pro >> Manage Forms >> edit your form >> PHP Scripts >> Script called on form process:
$_POST['form']['email']=$_POST['form']['number'].$_POST['form']['email'];
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
Last Edit: 10 years 3 months ago by silviup.
The administrator has disabled public write access.

Combine Fields before submitting 10 years 3 months ago #30331

Already tried that one, but it looks like the joomla registration is be handled first.
The administrator has disabled public write access.

Combine Fields before submitting 10 years 3 months ago #30332

  • silviup
  • silviup's Avatar
  • OFFLINE
  • Moderator
  • Posts: 309
  • Thank you received: 49
I have tested this multiple times on a local installation and the Joomla! user account is created using an email address resulted from the combination of the 2 fields.
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.

Combine Fields before submitting 10 years 2 months ago #30383

Thats correct but :

example : This e-mail address is being protected from spambots. You need JavaScript enabled to view it is registrated in the website.

If you fill in the email This e-mail address is being protected from spambots. You need JavaScript enabled to view it within the form on page1 is says :
Invalid email address.

i Think there is a validation on the registrated users
Last Edit: 10 years 2 months ago by WeWillWebdesign.
The administrator has disabled public write access.

Combine Fields before submitting 10 years 2 months ago #30475

  • silviup
  • silviup's Avatar
  • OFFLINE
  • Moderator
  • Posts: 309
  • Thank you received: 49
This should work on multi-page forms as well, with the sole condition that you are NOT using an AJAX validation. To turn it off, head to Components >> RSForm!Pro >> Manage Forms >> edit your form >> Properties >> Form Info >> set "Use AJAX Validation" to "No".

You can read more on this topic here:

www.rsjoomla.com/support/documentation/v...form-properties.html

If you wish to keep the AJAX validation, you should use Javascript to combine the number and email fields, but this would be a lot more complicated than the solution I have provided here.
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.
  • 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!