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.
I created a Page (copy of page, then renamed) Add-Machine. Type UserDefinedForm. I added fields and I really don't like how the checkboxes are automatically filled.
I'm trying to find the Add-Machine file or which file to edit to look at the code for the checkbox fields. I just see many versions of Page.ss and some PHP, but nothing with and field definitions.
I'm a little confused. Did you just create a new page in the admin CMS?
If so, there are no physical file for this. All pages created in the admin section are just database content.
UserDefinedForms are pretty basic. I never use them personally, but shouldn't there be an option to not have the checkbox checked by default or similar?
For UDFs, you can only edit them how you see the in the admin panel. If you want more complex forms, you need to custom write them yourself.
And the tutorial - http://doc.silverstripe.com/doku.php?id=tutorial:3-forms
Little out of date, but still gives the general idea.
I did not see any options for the checkboxes and was hoping to edit it in the code.
But now I see the fields in this manner are database items and don't have their own specific page for the form (but more an extension of Page)
I will look at the custom forms route.