Hi, I'm using the awesome FormItBuilder to create a form. Now I want to add a question mark right after some of the labels, which displays a tooltip when hovred over.
I've got it working pretty well so far by just adding some JavaScript to the page and some html code right after the label name, like this:
$o_fe_websiteName = new FormItBuilder_elementText('websiteName','Website name<a class=tooltip title=\'The title for the website.\'>?</a>');
It looks fine in the form and all, however, I'm running in to a couple of issues with the form validation and the email report. Since the label is used in these, my html code with the tooltip gets included in the email and in the validation error messages.
Is there a better way to add tooltips to avoid this? I'd rather not add each tooltip as an htmlBlock as it's a pretty long form with lots of tooltips.
Would appreciate any advice on this! Many thanks!
[ed. note: sketchi last edited this post 13 years, 4 months ago.]