List Manager Forum

Option List with LINKS

User moon_531 2012-05-30 22:46:50

Hi is it possible to add a URL to a Option list box field?
Thanks for any help

Moonsoft support 2012-05-31 09:59:34

Hello,
you can add an url as a value, or a label of an option list. Not sure if you are asking about having the options work as links, this is not possible with html tags. To do that, you'd have to add some other button or javascript events to your page, with a code able to recover option value and make the link.

Regards
Moonsoft Team

User moon_531 2012-06-02 14:58:57

Thx for the answer just to be sure.

I want a combo box with 4 option each option is a link to a external URL.. But when a put a URL in the value it dosent work.. so you say i have to put a code behind to make it a link? Thx.

Great component by the way! Just purchase it

Moonsoft support 2012-06-03 12:46:29

Hello,
thank you for your feedback. Yes, default html 'select' tag doesn't allow link creation or any other code inside the options (it's not a LM restriction, it's about html itself), so in order to get that special behaviour, you would have to code it, adding some js to your page.


Regards,
Moonsoft Team

User moon_531 2012-06-06 03:37:02

Do you have and example of what the .JS code should look like? and do i have to do anything to the module it self or just by adding a .JS code to my HTML page can make it work?

Moonsoft support 2012-06-06 09:57:35

Hello,

Sorry, but we don´t have any example of this feature. Maybe you could get some examples searching in internet.
About second question, maybe you´ll need to add js code to your template.

Regards,

...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!