TOPIC:

Conditional Hidden Field 2 weeks 1 day ago #277681

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

Please go to first select list click on [select] and in Init(JS) put this:
var el = jQuery(contentbuilder._("nameoffirstselectlist")).on('change', function(){

 var elt =  jQuery(this).val();
 contentbuilder._('nameoftextfield').value=contentbuilder._('nameoftextfield').value + " " + elt;
   return true;
    }
);
contentbuilder._('test').value='';
then go in second select list, click on [select] and ini Init (JS) put this:
var el = jQuery(contentbuilder._("nameofsecondselectlist")).on('change', function(){

 var elt =  jQuery(this).val();
 contentbuilder._('nameoftextfield').value=contentbuilder._('nameoftextfield').value + " " + elt;
   return true;
    }
);
contentbuilder._('test').value='';
Regards,
Tihana

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

Conditional Hidden Field 2 weeks 1 day ago #277682

  • Topic Author
  • ducman
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 110
  • Thanks: 0
Hello, it does the same thing, it saves all the values ​​every time... the code is the same but you added this,

contentbuilder._('test').value='';

is that so? in "test" do I have to put something?

Thank you!

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

Conditional Hidden Field 2 weeks 1 day ago #277683

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

please replace test with name of your textfield, then test again, sorry for my mistake

Regards,
Tihana

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

Moderators: ForumSupport
Time to create page: 0.047 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!