• 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: Min Size Field or Function Needed

Min Size Field or Function Needed 13 years 1 month ago #13305

Hi,

There is Max Size field in a Textbox component. What I need is the reverse Min Size field or just a function to make this. Thus I need user to enter exactly 10 numbers in a field.

Thanks
The administrator has disabled public write access.

Re:Min Size Field or Function Needed 13 years 1 month ago #13360

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

You can simply use a custom validation rule. Refer to the following article for more details:

http://www.rsjoomla.com/customer-support/documentations/32-customizing-rsform-pro/75-custom-validation-rules.html

You can use something like this for example:
function minLength($param,$extra = null)
{
     if(strlen($param) <= 3)
        return false;
      return true;
}
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: 13 years 1 month ago by alexp.
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!