Update Field is a WordPress ability from Ninja Forms — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Update Field
WriteUpdate an existing field's label, key, requirement, placeholder, default value, or options.
Requires the Ninja Forms plugin on WordPress 6.9+ for the Abilities API (all 32 abilities are registered only when the wp_register_ability() function exists, via NF_Abilities_Integration::load_abilities_api() running on plugins_loaded). Every ability is gated by the same ninja_forms_ability_can_manage_forms() permission callback, requiring the caller to hold WordPress's manage_options capability or Ninja Forms' own nf_edit_forms capability.
What it does
This ability changes one field on one form, identified by the combination of form_id and field_id — both are required, and the field_id alone is not enough. Only the properties supplied (label, key, required, placeholder, default_value, help_text, admin_label, order, options) are updated; anything omitted stays as-is. Options (for select/radio/checkbox-style fields) are replaced wholesale when provided, each with a label, value, and optional calc key for use in calculator equations. An AI assistant would typically call ninjaforms/get-form first to resolve the correct field_id from the user's description of the field before calling this.
See it in action
You ask your AI assistant
"On form 12, make the Phone field optional and change its placeholder to '(555) 555-5555'."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| form_id | integer | Yes | Form ID containing the field. |
| field_id | integer | Yes | The numeric ID of the field to update. |
| label | string | No | Field label. |
| key | string | No | Field key/name, used in merge tags. |
| required | boolean | No | Whether the field is required. |
| placeholder | string | No | Placeholder text. |
| default_value | string | No | Default value. |
| help_text | string | No | Help text shown with the field. |
| admin_label | string | No | Label shown in the admin/submissions view. |
| order | integer | No | Field order/position. |
| options | array | No | Replacement option list for select/radio/checkbox fields, each with label, value, and optional calc key. |
Returns
An object with a 'success' boolean, the 'form_id', 'field_id', an 'updated' object of the changed settings, and a 'message'.
Permission
The current user must have WordPress's 'manage_options' capability or Ninja Forms' own 'nf_edit_forms' capability (checked via the shared ninja_forms_ability_can_manage_forms() permission callback).
More Ninja Forms abilities
Add Action
Add a post-submission action to a form — email, redirect, success message, or save.
Add Calculation
Add a calculator formula to a form for use in calc fields and conditional logic.
Add Field
Add a single field to an existing form, to be called once per field when building out a form.
Create Form
Create a new Ninja Forms form, optionally with fields, actions, and calculations, in a single call.
Delete Action
Permanently delete an action from a form.
Delete Calculation
Permanently delete a calculation from a form.