Welcome, Guest Login

Support Center

Our documentation is moving:

Please check for the most up-to-date LiveWhale CMS and LiveWhale Calendar documentation. The below legacy documentation will remain available as a reference until the documentation migration is complete.

How do I make a category required?

Last Updated: Jul 10, 2017 11:49AM PDT

Your Question

Can we make the event categories section required?

Our Answer

Yes,  you can make a field required by performing the following steps. 
  • Login to the backend with your SFTP credentials into the LiveWhale server
  • Go to the following configuration file: /[webroot]/livewhale/client/private.config.php
  • Add the following code to make a field required

Note the structure of this line of code. 'events' is the content type that is used to target the events form. You can replace this with any of the content types such as, news, profiles, public (submission), etc..‚Äč The other part that you would need to revise is the field to require (ie., 'categories'). 

Below are a couple more examples:

seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found