Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

creating forms: size of TextField


Go to End


2158 Views

Avatar
Victor

Community Member, 128 Posts

27 March 2009 at 1:20am

In html text fields have attribute size (not to be confused with maxlength). While maxlength is implemented in SilverStripe form creation, size is not mentioned in http://api.silverstripe.com/forms/core/FormField.html

As any way to specify it? Also if I want to create a form where fields are not placed vertically but in custom layout

FirstFieldLong SecondFieldLong
ThirdField FourthField FifthField

what should I do?

Thank you in advance

Victor