17488 Posts in 4473 Topics by 1978 members
|Go to End|
12 December 2008 at 4:08am
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.
12 December 2008 at 9:37am
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.
13 December 2008 at 1:23am
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.
|Go to Top|