slice_id required default (current item's slice)The 32-character id of the slice that owns the field. If left empty, the field is looked up in the slice of the current item; outside an item context an empty slice_id yields no output.
field_id requiredThe id of the field whose allowed values are rendered, for example category........ or a custom select/checkbox field. The field must have an enumerable widget (select, checkbox, radio, multiselect, or one backed by a constant group or a linked slice); a plain text field or an unknown id produces an empty string.
values optional default (none selected)The value(s) to mark as selected. Pass a single value as plain text, or several values as a JSON array such as ["a","b"] for a multi-value field. Omit it to render every option unselected. A value that is not among the field's options is ignored.
{fieldoptions:2f3fef5ba522680d1dd5f681a814bf84:switch..........}
{fieldoptions:2f3fef5ba522680d1dd5f681a814bf84:switch..........:virtual}
[{fieldoptions:2f3fef5ba522680d1dd5f681a814bf84:headline........}]
{fieldoptions:2f3fef5ba522680d1dd5f681a814bf84:switch..........:["test","virtual"]}
[{fieldoptions:2f3fef5ba522680d1dd5f681a814bf84:nope............}]