TOPIC:

Submit button on condition 2 months 6 days ago #252101

  • Topic Author
  • mrperfectpz
  • Offline
  • Gold Breezer
  • Gold Breezer
  • Posts: 395
  • Thanks: 0
Hi

I have a custom submit button, how would I make it visable and unvisable based on a textfield value ="On" or "Off".

I have tried using visability rules with no success.

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

Submit button on condition 2 months 6 days ago #252102

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3815
  • Karma: 3
  • Thanks: 304
Hi,

just want to be sure, you want to make custom button visible/unvisible, if someone put in textfield value On/Off, or if this textfield is turn on/off?
E.g. if textfield is turn on show custom button, othervise hide custom button

Regards,
Tihana

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

Submit button on condition 2 months 6 days ago #252104

  • Topic Author
  • mrperfectpz
  • Offline
  • Gold Breezer
  • Gold Breezer
  • Posts: 395
  • Thanks: 0
Hi Tihana

Ok, the textfield is being populated by another so it will be automatically changed from "on" to "off" depending. Then I can use that for the visability of the custom button. I hope this explains.
So yes it is the button which I want turned on and off.
Regards

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

Last edit: Post by mrperfectpz.

Submit button on condition 2 months 5 days ago #252108

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3815
  • Karma: 3
  • Thanks: 304
Hi,

for this you can use visibility rules and javascript.
In your form->Advanced->Visibility rules put this:
 turn on element mydummy if yourdummy is something
for using the bfToggleFields() method.

Here is explained how to use this:
crosstec.org/en/support/online-documenta...s-in-javascript.html

Also, for your button condition is:
bfToggleFields('on', 'element', 'buttonname', bfDeactivateField);

Please replace buttonname with name of your custom button (not title).

Hope this helps.

Regards and happy holidays,
Tihana

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

Submit button on condition 2 months 5 days ago #252112

  • Topic Author
  • mrperfectpz
  • Offline
  • Gold Breezer
  • Gold Breezer
  • Posts: 395
  • Thanks: 0
Merry Christmas and a Happy New year to you !!!

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

Last edit: Post by mrperfectpz.

Submit button on condition 2 months 1 day ago #252141

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3815
  • Karma: 3
  • Thanks: 304
Hi,

merry Christmas and Happy New year too. :)

Did you solve this problem or your need more help?

Regards,
Tihana

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

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