Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Validation of Dropdowns (Select Compoent)

More
7 years 3 months ago - 7 years 3 months ago #4591 by godsgracetech
Validation of Dropdowns (Select Compoent) was created by godsgracetech
Hello,
We have been developing a form with two select components as per my below example. But i wanted to display the items in the second select based on the selected one in the first drop down.


Dropdown One: Apple, Capsicum, Sketch

If i select Apple in the first dropdown, then second drop down should show only Green Apple, Red Apple and Shimla Apple. If i select Capsicum then second drop down should show only Green Capsicum, Yellow Capsicum and etc Under Sketches it may have all kind of color codes. So all the options may not same in the three dropdown.

I hope you understand my requirement.
Could you please help me to fix this issue in the form i have designed. Appreciate your quick reply.

Thank You
Venu Kommu
Last edit: 7 years 3 months ago by godsgracetech.

More
7 years 3 months ago #4593 by Administrator AV
Replied by Administrator AV on topic Validation of Dropdowns (Select Compoent)
Hi,

it is not possible to disable specific options in a select depending on a selection made in another field. So this is not possible in the way you describe.

You would have to create different conditional select fields for the second choice.
One with the apple selections which is displayed, if in the first select the option "Apple" is selected.
One with the Capsicum selections, which is displayed if in the first select the option "Capsicum" is selected.
One for the Sketch selections.

But as a result, the selected options for apple colors, capsicum colors and sketch colors are saved in different data base fields. I hope that works for you.

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum