Alternative to tooltips

69 views
Skip to first unread message

Stanley Rodowicz

unread,
Aug 13, 2011, 9:04:45 PM8/13/11
to php-form-builder-class
What is the best way to display tooltips? I've noticed that this
function was taken out of version 2. Will there be functionality added
again in the future or is there an alternative method?

Andrew Porterfield

unread,
Aug 13, 2011, 10:22:22 PM8/13/11
to php-form-bu...@googlegroups.com
You're correct, the tooltip functionality that existed in the 1.x versions wasn't transferred into 2.x. Personally, I use the description element property to provide my users with any additional information about a form element. The description will be rendered in italic text below the element's label. Give it a try and let me know if that alternate solution works for you.

$form->addElement(new PFBC\Element\Textbox("My Textbox", "MyTextbox", array("description" => "This is a description of my form element.")));

- Andrew

Stanley Rodowicz

unread,
Aug 14, 2011, 8:43:41 AM8/14/11
to php-form-builder-class
That's a good solution! Thanks Andrew! I would however like to see a
tooltip feature in the future (if at all possible). It really was a
nice feature.

On Aug 13, 10:22 pm, Andrew Porterfield <aporterfi...@imavex.com>
wrote:

Andrew Porterfield

unread,
Aug 14, 2011, 1:21:39 PM8/14/11
to php-form-bu...@googlegroups.com
Just to provide a little background info...I removed tooltips and many other features (email, google spreadsheets, etc) that existed in v1.x because I felt that the "form" class was trying to do too much. I found myself spending more time on these auxiliary features instead of improving the core functionality which was suffering.

- Andrew

Reply all
Reply to author
Forward
0 new messages