21287 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 701 Views |
-
checkbox in widget not saving

24 April 2009 at 7:45am
hi,
i made a widget with three inputs
static $db = array(
"Title" => "Varchar",
"RSSFeed" => "Text",
"ShowRSS" => "Boolean"
);my getCMSField function looks like:
function getCMSFields() {
return new FieldSet(
new TextField("Title", "Title"),
new TextField("RSSFeed", "RSS Feed"),
new CheckboxField("ShowRSS", "Show RSS Link?")
);
}but after checking the checkbox and saving, the checkbox is not saved in db.
the db field is created properly, but no value is written to it.the other fields are ok.
is it because of the widget?
thanks
| 701 Views | ||
|
Page:
1
|
Go to Top |

