• 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: Same Value as - didn!t find this

Same Value as - didn!t find this 11 years 8 months ago #24726

  • mrbernd
  • mrbernd's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
hello,
i´m using joomla 1.5.6

didn´t find Validation Rule "Same Value as"
using RSForms Pro version 1.4.0 R44

thanks for help
The administrator has disabled public write access.

Same Value as - didn!t find this 11 years 8 months ago #24733

Hello mrbrend,

The "Same Value as" validation rule was added in Revision 46, and is unfortunately unavailable for Joomla 1.5 sites.

However a similar thing can be achieved by using a small PHP script called on form process. To add the script, first head over to Components > RSForm!Pro > Manage Forms > edit your form > Properties > PHP Scripts.

You can use something like the following to check if a field has the same value as another script:
// if Field1 isn't the same as Field2 then Field1 is invalid
if($_POST['form']['Field1'] != $_POST['form']['Field2'])
  $invalid[] = RSFormProHelper::getComponentId("Field1");
Remember to add this script in the "Scripts called on form process" field (the second textarea), and to adjust it to your particular scenario.

For more information, please refer to the following article:

www.rsjoomla.com/support/documentation/v...602-php-scripts.html
Please remember that my responses aren't considered customer support, to receive customer support please submit a new customer support ticket, and we will gladly assist you.

Best Regards,
Cristian Nicolae.
Last Edit: 11 years 8 months ago by cristian.nicolae.
The administrator has disabled public write access.

Same Value as - didn!t find this 11 years 8 months ago #24735

  • mrbernd
  • mrbernd's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
dear cristian,

thank you for your help.

i´m not a coder. i i buy this component because i found this Feature in the component discription.

i want to compare and validate two email fields.

can you give me the code i Need for this Action?

thank you so much

mrbernd
The administrator has disabled public write access.

Same Value as - didn!t find this 11 years 8 months ago #24739

  • matt
  • matt's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 14
Hi!

You find how to do this in the documentation. I have used this solution to compare 2 emails and it workes great.
http://www.rsjoomla.com/support/documentation/view-article/619-how-to-compare-two-fields-using-javascript.html

Matt
The administrator has disabled public write access.
The following user(s) said Thank You: wwhite
  • 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!