Hi, I'm having some issues changing the default selected value when I make an OptionsetField in Page.php for use inside SilverStripe.
Here is my code:
new OptionsetField(
$name = 'Options',
$title = 'Options',
$source = singleton('Page')->dbObject('Options')->enumValues(),
$value = "2"
)
However, no matter what I set "$value" to, whenever I create a new page in the CMS, the first option is always selected. Does anyone know why this is the case?