item_id optional default (current item)32-character id of the item whose field you want to edit. Leave it empty to edit the field on the item currently being rendered (the surrounding view or page item). An unknown or empty id that cannot be resolved makes the command return an empty string.
field_id required default (none)The field to edit, given as its full padded id (the field name padded to 16 characters with dots), for example headline........ or switch........... If empty, or if the field does not exist on the item slice, the command returns an empty string.
required optional default 0Set to 1 to mark the widget as required (it gets the data-aa-required attribute and a required flag, so your form validation can enforce a value). Any other value, or omitted, leaves the field optional.
function optional default (none)Optional extra behaviour passed through to the widget. For plain edit widgets this is rarely needed; in the live companion it is the JavaScript run after the value is submitted. Leave empty unless a specific widget documents a use for it.
widget_type optional default (field default)Three-letter code of the widget to render, overriding the field configured input type. For example sel forces a dropdown, chb a checkbox, dte a date picker, txt a plain text input. Omit it to use the widget the field is configured with.
widget_properties optional default (none)JSON object configuring the chosen widget, for example a list of dropdown options as const_arr. Sample: a JSON object mapping 0 to no and 1 to yes feeds a select widget two options. It may be given as a JSON object or as a JSON string; const_arr supplied as a string is decoded automatically.
{edit::headline........}
{edit:ce4ac95c48c3bbe590b80794e47c3e7b:headline........}
{edit:ce4ac95c48c3bbe590b80794e47c3e7b:switch..........:1}
[{edit:}]
{edit:ce4ac95c48c3bbe590b80794e47c3e7b:integer.........:::sel:{"const_arr":{"0":"no","1":"yes"}}}
[{edit:00000000000000000000000000000000:headline........}]