Can you change the subject to explicitly include "Forms 1.0"? Otherwise you're going to get wrong answers (not from me of course ).
That's frustrating because I prepared code for you based on the old Forms 1.0 and your initial question.
I'll post the Forms 2.0 version later.
What element are you expecting to have hover text? The individuals for the checkboxes, or the global label for the whole Checkboxes group?
Also note that not all browsers support displaying theattribute as hover/hint text. So what you think is working already for other form widgets isn't really working cross-browser.
Sanford Whiteman Hi Sanford. We would like the individual labels for the checkboxes to have hover text. Here is where the form lives on our site. Please note, we include the form within our CMS platform Kentico so it's not a Marketo landing page. Here it is below.
We tried putting the hover text in the "Instructions Field" in the form editor.
Here is a screenshot of where I put it within the form,
* Copy the `title` attribute (hover text) from the <input> or its parent
* to the global <label> element for the field
var arrayify = getSelection.call.bind(.slice),
formEl = form.getFormElem(),
labels = arrayify(formEl.querySelectorAll("label"));
var htmlForByName = formEl.querySelector("[name='" + label.htmlFor + "']"),
computedTitle = htmlForByName.title || htmlForByName.parentNode.title;
This works for Checkbox and Checkboxes widget types. EDIT: Let's make it more generic and have it apply to all widget types, since actually this isn't specific to Checkbox//es. And no dependencies on externally added classes ( isn't part of the standard form markup).
Hover text goes in the "instructions" field in the forms editor not the "hint text" field. Hint text is for placeholder text.
and it does work. tested in chrome, ff, edge, ie, safari
Question: how are you testing? what browser are you using?