Value-Checking: multiple Values possible 1 week 1 day ago #263578

  • Topic Author
  • Mister.Miracle
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 136
  • Karma: 1
  • Thanks: 1

i want to use a formfield with entered values and this values are allowed to be between 30 and 50.
also i want to check, if the value is not entered or entered.

in both checks there should be an error message.

now i create a custom check like this:
function ff_test_value(element, message)
	// What to do, to check the entered value. 
	// maybe like this? but how to send element.value to the data datenfeld?

	if (datenfeld = "" or datenfeld < 50 or datenfeld > 30) {
        if (message=='') message =" faild in my test.\n"
        return message;
    } // if
    return '';
} // ff_test_value

Maybe there is error while trying... but i hope you could help me :-)Thank you

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

Value-Checking: multiple Values possible 1 week 4 hours ago #263583

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 942
  • Karma: 2
  • Thanks: 50

ok, please navigate to the element where you want to make validation, and in properties of element scroll down to the section validation and select type 'Custom' and insert this code :
function ff_ElementName_validation(element, message)
    if ( (element.value > 30) && element.value < 50 ) return '';
        if (message=='') message =" faild in my test.\n"
        return message;
    } // if

} // ff_a_validation

-function ff_ElementName_validation(element, message)-> Instead ElementName insert name of Element (not title).

Let me know the result!


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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.039 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!