• 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: Create \"greater than\" numeric validation rule

Create \"greater than\" numeric validation rule 16 years 9 months ago #3727

Hi all.

Firstly, what a wonderful application RSForms Pro is. Well worth the money.

I am new to joomla and RSForms and am looking for a little advice. I am trying to create a form validation rule that will check if the number entered into a numeric field is >10.

E.g. a customer uses the form to apply for a software license. We only provide licenses in volume. 10 licenses is the minimum. can anyone assist in this?

My very poor attempt (Please don't laugh):

function Greater10($param)
{
if(eregi('[>9]', $param )){
return true;
}else{
return false;
}
}


Any assistance greatly received.
The administrator has disabled public write access.

Re:Create \"greater than\" numeric validation rule 16 years 9 months ago #3749

  • sebyp
  • sebyp's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
Hello

The function you will need to use is

function Greater10($param)
{
$number=intval($param);
if($number>10) return true;
return false;
}
The administrator has disabled public write access.

Re:Create \"greater than\" numeric validation rule 16 years 9 months ago #3817

Thank you very much sebyp. This will prove most useful. Thanks again.
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!