Files
wehub-resource-sync 8cb1f9f479
Publish SDK (PyPI) / publish (push) Has been cancelled
Publish SDK (npm) / publish (@aionui/officecli-sdk) (push) Has been cancelled
SDK smoke / smoke (windows-latest) (push) Has been cancelled
Publish SDK (npm) / publish (@officecli/officecli-sdk) (push) Has been cancelled
Publish SDK (npm) / publish (@officecli/sdk) (push) Has been cancelled
Publish SDK (npm) / publish (officecli-sdk) (push) Has been cancelled
SDK smoke / smoke (macos-latest) (push) Has been cancelled
SDK smoke / smoke (ubuntu-latest) (push) Has been cancelled
Skill parity / diff (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:09:29 +08:00

60 lines
2.5 KiB
JSON

{
"$schema": "../_schema.json",
"format": "docx",
"element": "formfield",
"parent": "paragraph|body",
"operations": {
"add": true,
"set": true,
"get": true,
"query": true,
"remove": true
},
"paths": {
"stable": ["/formfield[@name=NAME]"],
"positional": ["/formfield[N]"]
},
"note": "Form fields embed a BookmarkStart/End so names share the bookmark namespace and validation rules. Three kinds: text (default), checkbox, dropdown.",
"properties": {
"type": {
"type": "enum",
"description": "form field type.",
"values": ["text", "checkbox", "check", "dropdown"],
"aliases": ["formfieldtype"],
"add": true, "set": true, "get": true,
"examples": ["--prop type=text"],
"readback": "one of values",
"enforcement": "report"
},
"name": {
"type": "string",
"description": "form field name (required for stable addressing). Same constraints as bookmark name.",
"add": true, "set": true, "get": true,
"examples": ["--prop name=email"],
"readback": "name as stored",
"enforcement": "strict"
},
"text": {
"type": "string",
"description": "initial text value (text fields only). Alias: value.",
"aliases": ["value"],
"add": true, "set": true, "get": true,
"examples": ["--prop text=default"],
"readback": "initial text for text type",
"enforcement": "report"
},
"checked": {
"type": "bool",
"description": "default state (checkbox only).",
"add": true, "set": true, "get": true,
"appliesWhen": { "type": ["checkbox", "check"] },
"examples": ["--prop checked=true"],
"readback": "true/false",
"enforcement": "report"
},
"default": { "type":"string", "add":false, "set":false, "get":true, "description":"form-field default value. Text-fields surface the default string; dropdowns surface the integer default index.", "readback":"default value (string or integer)", "enforcement":"report" },
"enabled": { "type":"bool", "add":false, "set":false, "get":true, "description":"true when the form field accepts user input (FFData @enabled). Defaults true when the element is absent.", "readback":"true|false", "enforcement":"report" },
"hasFormFieldData": { "type":"bool", "add":false, "set":false, "get":true, "description":"true when the run carries an embedded fldData payload (legacy form-field binary blob).", "readback":"true when present", "enforcement":"report" }
}
}