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?

Lookup from SQL Database for conditional field

More
9 years 4 weeks ago #2166 by robinhair
Has anyone successfully used a conditional field to display the result of an SQL lookup from the database? I'm looking to fill a field based on the value in another field.

I'm using Joomla 3.3.6 and the latest visForm beta.

Thanks
Robin

More
9 years 3 weeks ago #2169 by Administrator AV
Replied by Administrator AV on topic Lookup from SQL Database for conditional field
Hi Robin,

you are very creative :)

The idea of the conditional field is, that you create different fields (with different default values) and display the field with the correct default value, depending on the user selection in the controlling field. So the condition does not change the default value but the entire field.

Does that not work for you? Do you need the different values to be in the same field?

This would be a totally different sort of conditional field.
Handling conditional fields is quite complex (the code) and I think, developing a conditional field type of this sort is not so easy.

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 :-).

More
9 years 3 weeks ago #2170 by robinhair
Replied by robinhair on topic Lookup from SQL Database for conditional field
Hi Aicha,

My thoughts were the user would enter a code in field A, then the corresponding description would be looked up in the database and displayed in field B. Unfortunately there are too many code/description combinations to hardcode the values (hundreds).

Regards
Robin

More
9 years 3 weeks ago #2171 by Administrator AV
Replied by Administrator AV on topic Lookup from SQL Database for conditional field
Hi Robin,

I have no immediate idea for an easy solution. Sorry.

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