Hi,
I’d like to know if there is a way / how to add tooltips on mouse over on checkbox fields.
For example, I have questions and some of the answers need a little more explanation. I’d like to add these explanations as tooltips, either on mouse over the answer itself or in a clickable (i) at the beginning or the end of the answer text.
Has anyone done this before?
Thanks for your help.
Dear Remi,
Please use the code below:
$(fd.field("Checkbox").$el).find("label").eq(i).attr("title","Text")
Notice that:
- you should place this code into the “spRendered” or “rendered” event handler,
- you should replace “Checkbox” with the internal name of your Checkbox field, “Text” with the appropriate text, “i” with a zero-based index of your checkbox value, e.g. if you have 3 choice values in the Checkbox field then their indexes will be 0,1,2.