Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Set the caption of a field to be a link View modes: 
User avatar
Member
Member
christer.anttila-ergoconsulting.com - 11/15/2012 11:26:37 PM
   
Set the caption of a field to be a link
Hi

I would like to set the caption of a field to be a link

For instance:

On a registration form I have a field called agree to terms and conditions. Under field appearance for that field I have the Field caption as "I agree to the Terms & Conditions". I would like for the words Terms & Conditions to be a link to a new tab or window to open the Terms and Conditions.

Where can I specify that the words Terms & Conditions should be a link.

Regards

Chris

User avatar
Member
Member
davids-kentico - 11/17/2012 2:55:58 AM
   
RE:Set the caption of a field to be a link
Hi Chris,

That should be fairly easy. Edit your form, switch to the Form tab and let it generate a generic table layout, unless you already have it customized. Then wrap the label (specified by something like $$label:fieldname$$) in an anchor tag.

Here's an overview of the Form tab: http://devnet.kentico.com/docs/devguide/index.html?defining_custom_form_layout.htm

I see your label looking like this


<a href="~/terms.aspx">$$label:termsandconditions$$</a>


You would do this the same way with document types or custom tables.

Cheers,
Dave