22500 Posts in 6852 Topics by 2750 members
|Go to End|
16 August 2012 at 2:46am
How can i give a form fieldset an id?
or would have to do a custom template.ss form?
eg: php code
$fields = new FieldSet(
only gives me
front end output
but i want <fieldset id="delegates">
and it needs to be on a fieldset not a div or other TAG
17 August 2012 at 8:10pm
The fieldset class doesn't wrap the fields in a 'fieldset' (terrible naming). It's actually part of the template (https://github.com/silverstripe/sapphire/blob/2.4/templates/Includes/Form.ss#L10) so you'd either need to do a custom template or put the ID on a div within the fieldset.
|Go to Top|