Ok found the answer, had to create a dictionary item with the html in it, and then reference that dictionary item alias in the content field (#TermsConditions). However it was escaping the text so had to then update my custom form to @Html.Raw(f.Caption). So looks like this is not possible out of the box.
You could javascript, aslong as the label text will staying the same you can have it at any part of the text, where as if the text will change you could do this dynamically working for all text but the link would have to be at the end or the beginning.
That should work, you can use a dynamic razor url from a media picker or anything like that by simple creating an invisible input with the value as the url variable.
Need link text in form field
Hello
does anyone know if it's possible to insert a hyperlink as part of a form label?
I need my 'Accept terms & conditions' part of the checkbox label to hyperlink to the T&C page...
Thanks
Tom!
Hi Tom, it's unreal with standard controls.
Thanks,
Alex
Hi Alex
what do you mean unreal? You mean impossible?
Thanks
Tom
Ok found the answer, had to create a dictionary item with the html in it, and then reference that dictionary item alias in the content field (#TermsConditions). However it was escaping the text so had to then update my custom form to @Html.Raw(f.Caption). So looks like this is not possible out of the box.
What do you mean by a dictionary item? How do you add this in Forms?
You could javascript, aslong as the label text will staying the same you can have it at any part of the text, where as if the text will change you could do this dynamically working for all text but the link would have to be at the end or the beginning.
You can do it in any part of the text by using:
That should work, you can use a dynamic razor url from a media picker or anything like that by simple creating an invisible input with the value as the url variable.
In the Views/Partials/Forms/Form.cshtml you can simply add @Html.Raw
and then you can add html to the help block
is working on a reply...