How to put link in checkbox group option text

edog5948 26 Apr, 2012
CF: 4.0 RC3.0
Joomla: Version 1.6.1

I have a checkbox group in my form. I want each option to have a link to another (reference) page.

For example,
Field Name = Product Samples
Options =
Prod1 = <a href="products/product1">Product 1</a>
Prod2 = <a href="products/product2">Product 2</a>
Prod3 = <a href="products/product3">Product 3</a>

Any way to accomplish this? Do I need to use a custom element?
GreyHead 26 Apr, 2012
Hi edog5948,

This may be possible but seems to defeat the whole purpose of having a form? Why not just display a list of links?

What am I missing? What do you want to have happen?

Bob
edog5948 26 Apr, 2012
This is only one part of the form.
The form is for requesting product samples.
The user puts in their name/address/etc.
One item they need to select is the particular sample they want. This is the Option text.
The link is to provide them a cross-reference to that particular product. It will also be target="_blank" in the link, so the cross-reference information is on a new page.
GreyHead 26 Apr, 2012
Hi edog5948,

It doesn’t seem to be possible. You can get the link HTML into the Options using a Custom code action but they won't work as links from the options.

The best I can suggest is to use a radio button group with links in the labels.

Bob
This topic is locked and no more replies can be posted.