I have the "Value Not Empty" rule in effect, but some users are entering spaces in the field instead of typing a real response, and it is getting past the rule. Is there a way to force them to type something other than the spaces?

Go to Components > BreezingForms > Manage Scripts and then click on the value_notempty script to edit it.

Now replace this:

 

function ff_valuenotempty(element, message)
{
     if (element.value!='') return '';
     if (message=='') message = "Please enter "+element.name+".\n";
     ff_validationFocus(element.name);
     return message;
} // ff_valuenotempty

 

with this:

 

function ff_valuenotempty(element, message)
{
     if ( ff_trim(element.value) ) return '';
     if (message=='') message = "Please enter "+element.name+".\n";
     ff_validationFocus(element.name);
     return message;
} // ff_valuenotempty

 

Then click on the SAVE icon in the lower right-hand corner of the screen. Test it out -- it should work for you now.

 

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!