Adding Description in Silverstripe CMS Fields

When building forms, there are times when we want to display helpful information regarding the field. There are a couple of ways to do this: by using LiteralField or using setDescription() in the field object.

Silverstripe provides setDescription() function in a field object to help generating text underneath a field.

This field can be chained with other function. So you can set the description on creation like below:

Or when you adding a field to a tab:

 

For more information: Silverstripe 3.3 – Cms formfield help text

 

Leave a reply:

Your email address will not be published.