TOPIC:

Auto fill field 8 months 2 weeks ago #277615

  • Topic Author
  • ducman
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 131
  • 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 8 months 2 weeks ago #277618

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 786
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 8 months 2 weeks ago #277622

  • Topic Author
  • ducman
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 131
  • 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 8 months 2 weeks ago #277623

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 786
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 8 months 2 weeks ago #277625

  • Topic Author
  • ducman
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 131
  • 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 8 months 2 weeks ago #277626

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 786
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.060 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

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

Subscribe to news and updates!

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!