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

Parameters: update_form_field
NameTypeDescription
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
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"}'
Python
result = client.call("123formbuilder", "update_form_field", {"form_id":1,"field":"field"})
Node.js
const result = await cotlet.call('123formbuilder', 'update_form_field', {"form_id":1,"field":"field"});
CLI
cotlet call 123formbuilder update_form_field --data '{"form_id":1,"field":"field"}'

Example response

JSON

{
  "form_id": 5130021,
  "field": {
    "label": "Phone",
    "type": "Phone",
    "instructions": "Include the country code"
  }
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.