TOPIC:

Auto fill field 2 months 2 weeks ago #277636

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

then I will check it on another PC, and get back to you

Regards,
Tihana

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

Auto fill field 2 months 2 weeks ago #277637

  • Topic Author
  • ducman
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 115
  • Thanks: 0
Ohh thank you very much Tihana!!

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

Auto fill field 2 months 2 weeks ago #277638

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

please go to select list in view click on [select]->Scripts->Init (JS) and put this:
var el = jQuery(contentbuilder._("a")).on('change', function(){

    if(  jQuery(this).val() =="Yes"  ){
jQuery(contentbuilder._("b")).val("something");
       contentbuilder.onSubmit( function() { return false; } )
    }

});
Please replace "a" with name of your select list (not title), and "b" with name of textfield (not title)
-Yes is value of select list (not Label), please replace it with your value
-something is value which you want to show in textfield

Regards,
Tihana

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

Last edit: Post by tihana.krivic.

Auto fill field 2 months 2 weeks ago #277639

  • Topic Author
  • ducman
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 115
  • Thanks: 0
Good... almost everything works. I'll explain, the function does it correctly, I choose from the dropdown and fill in the field, but when I hit save the gray button stays and does nothing. If I make any other changes it works correctly ¿?¿?

Thank you!

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

Auto fill field 2 months 2 weeks ago #277641

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

like this:
var el = jQuery(contentbuilder._("a")).on('change', function(){

    if(  jQuery(this).val() =="Yes"  ){
jQuery(contentbuilder._("b")).val("something");
       contentbuilder.onSubmit( function() { return true; } )
    }

});

Regards,
Tihana

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

Last edit: Post by tihana.krivic.

Auto fill field 2 months 2 weeks ago #277642

  • Topic Author
  • ducman
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 115
  • Thanks: 0
Now yes!!! perfect... I am very grateful for your help, tell me if I can do something for you.

A big hello!

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

Moderators: ForumSupport
Time to create page: 0.051 seconds

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

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!