Hello,
I'm having trouble making it work with textareas. Trying to add #hint in the contact message form element. I currently have this:
function test_module_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'contact_mail_page') {
$form['message']['#hint'] = 'test';
}
}
..although it doesn't seem to work.
Any help appreciated.
Thanks!
Comments
Comment #1
mrlava commentedI also cannot get this working with a textarea but the textfield works fine.
field_contact_name = textfield
field_charter_company = textarea
Comment #2
quicksketchHint currently does not work with textareas at all. I think I updated the documentation to reflect that it only works on textfields and password fields, but if Hint claims to work on textareas anywhere we need to remove that claim since it does not work on them at all.
Comment #3
dsdeiz commentedHi!
It's on the project page where I found it supports textareas:
Comment #4
quicksketchThanks, I had intended original to make it work with textareas, but that proved a bit tricky. Currently only text fields and password fields are supported.
Comment #5
quicksketchMarking fixed as a support request. Not sure if we'll ever support textareas.