@Dave Lee The code would go in your theme template file that is used for the page that is displaying your form.
@SigarettDesign the reason Gravity Forms does not currently allow HTML in the checkbox label is because the checkbox label is used in the Entry List screen as a column header and HTML could cause UI issues if used in that field due to how the labels are output and utilized in the admin.
Not to mention placing HTML in labels can disrupt the form builder, it would be easy for the user to place code in them that would cause UI issues in the form builder and admin the way it is currently working.
We do plan on implementing the ability to use HTML in labels, however we need to hold off until we have time to devote to implementing it properly. We can't just stop stripping HTML from these fields because it would cause major problems in the admin if we did so. We have to make sure the form builder, entry list page, etc. handles it properly. Most likely the HTML will have to be stripped out when displayed in these areas.
The problem is if all the label contains is HTML, then there is nothing to display if we strip the HTML. So it's not as simple as it may sound. We plan on finding the best way to handle it but we aren't going to rush it into the plugin as a feature until we do so. I
Posted 11 years ago on Tuesday March 1, 2011 | Permalink