Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

CB Code Field

  • Abmago
  • Abmago
  • OFFLINE
  • Posts: 47
  • Thanks: 6
  • Karma: 0
4 years 8 months ago #317619 by Abmago
CB Code Field was created by Abmago
Hi, I have a question about the add-on 'CB Code Field'. It is not clear to me how I can design a good working Code Drop Down (Single Select). I am no expert in PHP code, but with some good examples I can make simple things. I guess my issue is not that difficult, but I did not succeed so far.

In have made a field called CB_kingetal where the user fills in a number between 0 and 261. The number can be interpreted in different ways. In one interpretation the values 1, 21 or 41, 61, have the same outcome namely 'IMIX'.

I want an automatic choice in the Single Select Dropdown menu. This should not be difficult, but I miss the clue. The first value of the dropdown should become true if CB_field is 1 or 21, etc. What kind of code do I need to make this simple automation work?

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

Moderators: beatnantkrileon
Powered by Kunena Forum