TOPIC:

Conditional number based on field calculation 3 weeks 2 days ago #276225

  • Topic Author
  • DSFCosta Rica
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 16
  • Thanks: 0
I read something in the forum ( crosstec.org/en/forums/37-contentbuilder...l-value.html?start=6 ) but could not make it work...

Field 1 (x amount put by the user)
Field 2 (amount calculated to get the 10% of Field 1)
Field 3 Should be an amount wrote by the user BUT should be a number higher or equal to Field 2. If number is less than field 2 it should put a message and or get the number from Field 2.

Fields 1 and 2 are done... but field 3 its a headache for me.
Any clue?

Warm regards,
Alex
Attachments:

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

Last edit: Post by DSFCosta Rica.

Conditional number based on field calculation 3 weeks 1 day ago #276238

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2967
  • Karma: 2
  • Thanks: 150
Hi,

oke,
could you please provide me here your FORM so I can check it

on the link below is described how to do it

crosstec.org/en/support/online-documenta...ted/94-packages.html


Regards,
Mirko

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

Conditional number based on field calculation 3 weeks 1 day ago #276240

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2967
  • Karma: 2
  • Thanks: 150
Hi,

solved!

I create one example for you and sent it to you in the attached file, please download->unzip->and install it (BF->Configuration->Package Installer->select this xml file->Install Package).


you can find the code in the init script of the FORM, the code is
function ff_QuickForm360144905_init()
{
setInterval('test()', 5000);
} // ff_QuickForm360144905_init

function test(){

var a=Number (ff_getElementByName('a').value);
var b=Number (ff_getElementByName('b').value);

if ( a > b){
var b= ff_getElementByName('b').value=a;

}


}

You can embed this solution in your FORM and see how works, if you get to stuck, please let me know!


Regards,
Mirko
Attachments:
The following user(s) said Thank You: DSFCosta Rica

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

Conditional number based on field calculation 3 weeks 1 day ago #276252

  • Topic Author
  • DSFCosta Rica
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 16
  • Thanks: 0
It works!!!!
Thank you

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

Last edit: Post by DSFCosta Rica.

Conditional number based on field calculation 3 weeks 16 hours ago #276257

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2967
  • Karma: 2
  • Thanks: 150
Hi,

super, I'm glad I can help you! :)

If you have more questions, feel free to ask!

Regards,
Mirko

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

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

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

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

breezingforms.eddy-vh.com

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

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