Purpose

Builds and returns the “create new entry” form. When triggered from a subtable, the parent context is carried along so the new entry is linked to its parent on save.

Payload

  • form — id of the form to render
  • entity — entity id
  • datatable / datatable_identifier — the DataTable to refresh after saving
  • parent_id, parent_entity_id, linked_to — parent context for auto-linking (subtable case)
  • options — rendering options
  • close_modal — whether saving should close the modal
  • token — form token

Response

CALLBACK_TYPE_MODAL with the rendered form, CALLBACK_TYPE_STRING for inline rendering, CALLBACK_TYPE_MESSAGE on errors.

Notes

Internal action — triggered by WR’s own frontend JS. The payload shape is not a public API and can change between releases.