TOPIC:

Auto fill field 2 weeks 2 days ago #277615

  • Topic Author
  • ducman
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 110
  • Thanks: 0
Good afternoon, I have tried without success to do the following:

I have two fields type "select" in the field called "one" I have two options A and B. Then I have another field called "dos" type "select" with 4 options RED, GREEN, BLUE, BLACK.

I am trying that when I choose option A in field "one" in field "dos", the "BLUE" option is automatically filled in. It's possible? I don't know if I explained myself well, sorry but I use the google translator.

Thank you!!

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

Auto fill field 2 weeks 2 days ago #277618

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

ok, if I understood you correctly, based on first selection in first select list, you want to populate second select list? Am I right?

Regards,
Tihana

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

Auto fill field 2 weeks 2 days ago #277622

  • Topic Author
  • ducman
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 110
  • Thanks: 0
Hello Tihana, yes that is how you say. Yet another solution would be that by selecting an item from the first select list, it would automatically fill in a text field (thus skipping the second select field).

Thank you!

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

Auto fill field 2 weeks 2 days ago #277623

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

here is explain how to populate one select list based on another select list:
crosstec.org/en/forums/coding-consultanc...html?start=12#271741

For this you need some ajax code and php code

Let me know if you need more help

Also, if I missed something , let me know

Regards,
Tihana

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

Last edit: Post by tihana.krivic.

Auto fill field 2 weeks 2 days ago #277625

  • Topic Author
  • ducman
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 110
  • Thanks: 0
Hello, I have used in editable prepare the following code that also works for me (and for me it is easier)

if($items["OPENING_CLEANING"]["value"] == 'YES'){$items["status "]["value"] ='IN PROCESS';}

The problem I have is that when I edit the value is not saved, I have to enter it again for it to appear, is there a solution?

Thank you!

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

Last edit: Post by ducman.

Auto fill field 2 weeks 2 days ago #277626

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

ah, sorry, you are using only content builder ?
If yes, then you can't use this code from previous message

Regards,
Tihana

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

Last edit: Post by tihana.krivic.
Moderators: ForumSupport
Time to create page: 0.051 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!