TOPIC:

Not Equal Format 5 days 15 hours ago #258436

  • bruce@brucedill.com's Avatar Topic Author
  • bruce@brucedill.com
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 1111
  • Karma: 1
  • Thanks: 9
I have code, "if(element.value=='Yes')". Instead of "=" I want to say "Not Equal" How do I code this?

Thanks

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

Not Equal Format 5 days 15 hours ago #258437

  • Mirec's Avatar
  • Mirec
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Karma: 1
  • Thanks: 1
Hello,
if(element.value != 'Yes')

' !=' not Equal

regards!
Mirko

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

Not Equal Format 5 days 15 hours ago #258439

  • bruce@brucedill.com's Avatar Topic Author
  • bruce@brucedill.com
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 1111
  • Karma: 1
  • Thanks: 9
Here is my actual code: Would you please change it to be my example?

function ff_agility_1_1_action(element, action)
{
switch (action) {
case 'change':
if(element.value=='Yes') {
ff_getElementByName('agility_fees_1').value=Number(ff_getElementByName('agility_fees_1').value);
ff_getElementByName('non_reg_fees_day_1').value=Number(ff_getElementByName('non_reg_fees_day_1').value) + Number(ff_getElementByName('non_reg_fee_amount_14').value);
ff_getElementByName('pay_fees_1').value=Number(ff_getElementByName('reg_classes_fee_1').value) +
Number(ff_getElementByName('non_reg_fees_day_1').value) ;
}

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

Not Equal Format 5 days 15 hours ago #258440

  • Mirec's Avatar
  • Mirec
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Karma: 1
  • Thanks: 1
Hello,

of course :)
ff_agility_1_1_action(element, action)
{
switch (action) {
case 'change':
if(element.value!='Yes') {
ff_getElementByName('agility_fees_1').value=Number(ff_getElementByName('agility_fees_1').value);
ff_getElementByName('non_reg_fees_day_1').value=Number(ff_getElementByName('non_reg_fees_day_1').value) + Number(ff_getElementByName('non_reg_fee_amount_14').value);
ff_getElementByName('pay_fees_1').value=Number(ff_getElementByName('reg_classes_fee_1').value) +
Number(ff_getElementByName('non_reg_fees_day_1').value) ;
}

regard!
Mirko

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

Not Equal Format 5 days 11 hours ago #258446

  • bruce@brucedill.com's Avatar Topic Author
  • bruce@brucedill.com
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 1111
  • Karma: 1
  • Thanks: 9
Thanks! Works Great!

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

Not Equal Format 4 days 23 hours ago #258467

  • Mirec's Avatar
  • Mirec
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Karma: 1
  • Thanks: 1
Hello,

you're welcome!
if you need help in the future, let me know! :)

regards!
Mirko!

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

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