• 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: Is it possible to set a mimimum dollar amount?

Is it possible to set a mimimum dollar amount? 11 years 9 months ago #24397

  • tigurius
  • tigurius's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
I have a form field that allows submitters to list a dollar amount, I don't want them to be able to enter less than $6500. Is there a way to do this?
The administrator has disabled public write access.

Is it possible to set a mimimum dollar amount? 11 years 9 months ago #24405

This can be done using a PHP script, specifically a Script called on form process (Manage Forms > edit the form > Properties > PHP Scripts). You can use something like to following:

$minValue = $_POST;
if($minValue[0] == '$')
$minValue = substr($minValue, 1);

$minValue = floatval($minValue);

if($minValue < 6500)
$invalid[] = RSFormProHelper::getComponentId('numberField');

With this script a validation error will be triggered whenever the user enters a value lower than 6500.
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.
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!