how to add class to text fields into form builder template

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
lazut
Forum Members
Forum Members
Posts: 15
Joined: Thu Dec 22, 2011 3:54 pm

how to add class to text fields into form builder template

Post by lazut »

hi
I could't find a way to add class to text fields in html form by using form builder module. Form builder module version is 0.7.

Code: Select all

<input type="text" name="cntnt01fbrp__90" value="" size="25" maxlength="128" id="Field Alias and DOM id (CSS id)">
I found an example with class in this page http://bootstrap.cmsmadesimple-themes.c ... ilder.html I looked at the code

Code: Select all

<input type="text" class="cms_textfield" name="m50d18fbrp__10" id="m50d18fbrp__10" value="" size="25" maxlength="128">
but I don't know where does this class come . I see in the form template <label> element but I cant find <input type=text ...> element.

Do I have to change php files of from builder to add class .
I am trying to create responsive form so I have to add class to elements

Thanks for reply
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: how to add class to text fields into form builder templa

Post by Jo Morg »

Asked and answered too many times: please use the search function of the forum!
Check this for instance: http://forum.cmsmadesimple.org/viewtopi ... =7&t=70999
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “The Lounge”