Variable tooltip for JForm field

For Joomla! 3.x Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Post Reply
MarkRS
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu Oct 29, 2009 8:28 am

Variable tooltip for JForm field

Post by MarkRS » Mon Apr 15, 2019 12:21 pm

I want to set an input field's tooltip from data.

I can do it easily enough when I code the html output myself in (eg) <view>/tmpl/default.php but I can't seem to do it with data loaded from an XML form.

I'd hoped

Code: Select all

		$this->form->setFieldAttribute($fieldname, 'description', $value);
would do it, but this sets the tooltip of the field label, not the field itself.

Is there a way to do this?

Post Reply

Return to “Joomla! 3.x Coding”