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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

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

TextareaField Suggestion

Go to End

3 Posts   1198 Views

BLU42 Media

Community Member, 71 Posts

31 July 2008 at 4:02am

While coding I found this trivial detail. I would like to propose a minor update to the TextareaField construct.

The default behavior for other FormFields such as TextField are set to automatically set the $title to $name if $title is null. The construct for TextareaField sets $title to an empty string so you must include the $title otherwise it will appear blank.

Could we have $title be set to null in the construct of TextareaField like in the other FormFields?



Forum Moderator, 922 Posts

4 August 2008 at 8:03pm

Perfectly acceptable change, I've noticed this myself but couldn't find a ticket in the open source tracker. We're all about making the form fields more consistent, so I've made a ticket to do it here:

Thanks for spotting this.


BLU42 Media

Community Member, 71 Posts

5 August 2008 at 1:40am

Thanks Sean!