slice_id optional default current item's sliceThe 32-character id of the slice whose field you want a widget for. Leave empty to use the slice of the item currently being rendered.
field_id required default (none)The field whose editing widget to render, e.g. headline........ . If the slice or field is not found, inputonly returns an empty string.
required optional default 0 (not required)Set to 1 to mark the widget required - adds data-aa-required on the wrapper and the required attribute on the input. Any other value leaves it optional.
widget_type optional default the field's configured widgetA 3-letter widget code to override the field's default widget, e.g. fld (text), sel (drop-down), chb (checkbox), dte (date), txt (textarea). Empty uses whatever the field is set to in slice admin.
widget_properties optional default (none)A JSON object of options for the widget, e.g. {"name":"My label","input_help":"hint","columns":"1"} or {"const_arr":{"0":"No","1":"Yes"}} for a select. Note the order: widget_type is param 4, this is param 5.
preset_value optional default the field's default valueA value to pre-fill the widget with. Accepts a plain string or JSON. With no preset, the field's own default value (if any) is used.
item_index optional default 1Numbers the form group so several new items can be entered on one page. Index 2 names inputs aa[n2_SLICE][...] instead of aa[n1_SLICE][...].
{inputonly:9e1d2b9f88e3d6c3bf0eb967378610d6:headline........}
[{inputonly:9e1d2b9f88e3d6c3bf0eb967378610d6:no_such_field..}]
{inputonly:9e1d2b9f88e3d6c3bf0eb967378610d6:headline........:1}
{inputonly:9e1d2b9f88e3d6c3bf0eb967378610d6:headline........::sel:{"const_arr":{"0":"No","1":"Yes"}}}
{inputonly:9e1d2b9f88e3d6c3bf0eb967378610d6:headline........::::Hello world}
{inputonly:9e1d2b9f88e3d6c3bf0eb967378610d6:headline........:::::2}
{inputonly:9e1d2b9f88e3d6c3bf0eb967378610d6:switch..........}