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.

value of selection type not returned

More
6 years 8 months ago #4606 by Administrator AV
Replied by Administrator AV on topic value of selection type not returned
Hi,

I was a bit slow yesterday.

If you want to actually create a link from the selected options in the result message, this is possible, too. Just use the placeholder inside the href attribute of the link. For example if the name of your select field is "select" this would be:
Code:
<a href="[SELECT]">[SELECT]</a>

If you insert the link using the editor link icon, then just enter the placeholder [SELECT] in the "Url" input.

You can even use the placeholder as part of the href attribute. For example if your documents are all stored in the folder downloads/documents you could use only the document name as option value in the Visforms field of type select and then your link in the result message could look like
Code:
<a href="downloads/documents/[SELECT]">[SELECT]<;/a>

As you can see, using placeholder is really very flexible.

I think, with this solution, even the original Visforms code, that always uses the selected option label, could be used, but with the code changes you have made it's even better.

The only thing you have to make sure is, that a user can never select more than on option, which is the default with a field a type select and radio but must be set in the field configuration for fields of type multicheckbox

Kind 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
6 years 7 months ago #4722 by Administrator AV
Replied by Administrator AV on topic value of selection type not returned
Hi,

I promised to make it a featue in Visforms, that you can choose whether the value or the label is used and to release this with the next Visforms versions.
Sadly, due to problems with Joomla! 3.8, I had to release an unplanned bugfix Version for Visforms on Monday (Visforms 3.9.2) which does not yet contain the modifications. So if you update to Visforms 3.9.2 you will have to make your modifications once again but the feature will be released with Visforms 3.10.0

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