Form Help


Custom Validation 1 year 10 months ago #247021

  • Topic Author
  • carloszoom3000
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 1
  • Thanks: 0
I want the data entered in my fields as numbers separated by a dot (.), when decimals, and limited to 4 characters.

I'm not familiar with the code.

I appreciate your help.


Please Log in or Create an account to join the conversation.

Custom Validation 1 year 10 months ago #247033

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 10535
  • Karma: 3
  • Thanks: 705

if you want limit your field for example on 4 numbers, then you should to use Validation.
Go to your element->Properties->Validation->check Custom -> Create code framework and put this:
function ff_NAMEOFELEMENT_validation(element, message)
    if(!isNaN(element.value) && element.value.length == 4){
         return '';
        return 'Please enter a valid number (4 digits)';
} // ff_NAMEOFELEMENT_validation

Please replace NAMEOFELEMENT with name of your element (not title)

Also, you want replace comma "," with point "." when someone enters decimal number?


Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.042 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links










Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

Questions et réponses sur les forums de l'AFUJ


Special Offer

Summer 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 with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!