Is there no easy way to change the size of an individual text field without overriding the input/text.php file in my plugin? I'm using Elgg 2.3.14.
echo elgg_view_field([ '#type' => 'text', 'name' => 'confirmCode', 'autofocus' => true, 'required' => true, '#label' => elgg_echo('confirmCode'), '#class' => 'link-account', ]);
I just want to set the size and maxlength of this one field to 6 but adding those properties didn't work.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 1 like
- TCB@tblack06
TCB - 0 likes
You must log in to post replies.You can use jQuery like:
Thanks. Will give that a try.