Update form field
Change the label or the instructions of a field.
PATCH https://cotlet.dev/api/v1/123formbuilder/forms/{form_id}/field
write Confirm
Selects a field by its label and changes its label or the text in the Instructions box under Quick setup. Fields you do not name stay as they are. Answers already collected keep working. A form embedded with the JavaScript code shows the change as soon as it is saved. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| form_id integer required | integer | Form id from list_forms. |
| field string required | string | Current label of the field, from get_form. |
| label string | string | New label. |
| instructions string | string | New text for the Instructions box. |
Request
curl -X PATCH https://cotlet.dev/api/v1/123formbuilder/forms/1/field \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"field":"field"}' result = client.call("123formbuilder", "update_form_field", {"form_id":1,"field":"field"}) const result = await cotlet.call('123formbuilder', 'update_form_field', {"form_id":1,"field":"field"}); cotlet call 123formbuilder update_form_field --data '{"form_id":1,"field":"field"}' Example response
{
"form_id": 5130021,
"field": {
"label": "Phone",
"type": "Phone",
"instructions": "Include the country code"
}
}