• 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: Field Validation

Field Validation 13 years 3 months ago #12321

  • rjsayat
  • rjsayat's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
Hi, I'd like to implement field validation in the form and would like to know what the values would be. I'd like to be able to make sure that the minimum numbers (minlen) of characters are inputed or that they placed only numeric(num) in the fields. Thanks
The administrator has disabled public write access.

Re:Field Validation 13 years 3 months ago #12329

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

This can be done...but will require some source code modifications. Depending on your use scenario you will have to edit the components/com_rsmembership/views/subscribe/tmpl/default.php (or default_login.php).

Basically you will have to create a Javascript function, placed after the javascript tags, that will verify the length of the input when the submit button is clicked.

To trigger the function you will have to alter this:
<input type="submit" class="button" value="<?php echo JText::_('RSM_NEXT'); ?>" name="Submit" />

with (for example):
<input type="submit" class="button" value="<?php echo JText::_('RSM_NEXT'); ?>" name="Submit" onclick="return name_of_your_function();"/>
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!