JSON API - addFormElement

addFormElement

PREMIUM TRIAL / ADVANCED

Inserts a form element.

Note

You are reading the JSON API documentation. For the PHP API method please go to addFormElement.

JSON data

Styles from addText can be used.

Key Description
type
  • textfield
  • checkbox
  • select
defaultValue A string of text for the textfield type, a boolean value for the checkbox type or a number representing the index (0 based) for the options of a select form element.
selectOptions Options for the dropdown menu.
Code samples

Example #1

Release notes
  • phpdocx 18.0:
    • new action.