TOPIC:

MULTIPLE CONDITION 2 weeks 3 days ago #243510

  • Topic Author
  • lci
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 155
  • Thanks: 0
Hello!
Please I'm trying to create an if condition with 3 conditions.
e.g.
If x<=3, y=15 and z=10 then Result=10

Can you help?

Thank you

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

MULTIPLE CONDITION 2 weeks 3 days ago #243511

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9255
  • Karma: 167
  • Thanks: 744
Hi,

where do you need this condition and what is supposed to happen when the condition is met?

Regards,
Markus

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

MULTIPLE CONDITION 2 weeks 2 days ago #243575

  • Topic Author
  • lci
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 155
  • Thanks: 0
Hi!
It is suppose to do a calculation for me.
Actually I need to do the cost estimation for printing.
So base on the paper type, the quantity, the size a price must be given.

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

MULTIPLE CONDITION 2 weeks 2 days ago #243597

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9255
  • Karma: 167
  • Thanks: 744
Ok, then please check this out:

crosstec.org/en/support/online-documenta...ting-textfields.html

It also contains a demo form that you can try out and also download and import to use it as boilerplate.

Regards,
Markus

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

MULTIPLE CONDITION 1 week 6 days ago #243755

  • Topic Author
  • lci
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 155
  • Thanks: 0
Thank you, but where is the condition clause. the way we have 2 conditions clause I wanted the case where I can use 3 conditions clause.
if a=5 and b=10 and c ≥50 then X=500
thank you for your help

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

MULTIPLE CONDITION 1 week 6 days ago #243769

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9255
  • Karma: 167
  • Thanks: 744
Achiving conditions would look like this
function ff_FIELDNAME_action(element, action)
{

     if(ff_getElementByName('a').value == 5 && ff_getElementByName('b').value == 10 && ff_getElementByName('c').value >= 50 )
     ff_getElementByName('result').value = 500;
}

Where a, b, c and result would be the actual field names (not titles) you get your values from.
The above will work with textfield, textareas, dropdowns and hidden fields.

FIELDNAME would be the name (not title) of the element that should trigger the action (could be a custom button or another field).

Regards,
Markus

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

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

Summer Sale!

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!