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