Page 1 of 1

Formbuilder textarea readonly mode

Posted: Sun Feb 02, 2014 1:18 pm
by erpee
Is there a way to give a textarea in Formbuilder the readonly state?

so ...

Code: Select all

<textarea name="cntnt01fbrp__34" cols="60" rows="5" class="cms_textarea" id="container">
</textarea>
becomes ...

Code: Select all

<textarea name="cntnt01fbrp__34" cols="60" rows="5" class="cms_textarea" id="container" readonly>
</textarea>

Re: Formbuilder textarea readonly mode

Posted: Sun Feb 02, 2014 3:07 pm
by staartmees
No, but you can use Static text instead.

Re: Formbuilder textarea readonly mode

Posted: Mon Feb 03, 2014 9:50 am
by velden
Some would use a smarty replace on the FormBuilder tag. Or in the FormBuilder form template if you make a custom one.

Example:

Code: Select all

{FormBuilder|replace:'name="cntnt01fbrp__34"':'name="cntnt01fbrp__34" readonly' form='contact'}

Re: Formbuilder textarea readonly mode

Posted: Mon Feb 03, 2014 4:24 pm
by Dr.CSS
If you want to display text somewhere in the form best to use Static text...

Re: Formbuilder textarea readonly mode

Posted: Mon Feb 03, 2014 8:21 pm
by erpee
Thanks for all the replies, I'm going to give them all a try...