This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

oly2554
oly2554

Hi, Is there an easy way to add tooltips the the backend form fields? Such as adding the data-toggle & title somehow in the fields.yaml? Thanks

alxy
alxy

http://octobercms.com/docs/backend/forms#form-field-options

You can specify custom attributes and containerAttributes. These are arrays that can hold arbitrary HTML attributes.

oly2554
oly2554

I suspected as much, what format do the attributes have to be in? I've tried attributes: data-toggle="tooltip" in a classic attempt at wishful thinking but no joy. Any chance of an example? Again many thanks.

oly2554
oly2554

For anyone else the answer turned out to be obvious once I RTFM :)

attributes: { data-toggle: "tooltip", title: "Some informative text" }

RomaldyMinaya
RomaldyMinaya

@oly2554,

+1 to your answer buddy :)

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.