save_acpt_form_field

save_acpt_form_field

Create/edit a form field.

Usage

save_acpt_form_field([
   'form_name' => 'new-form',
   'key' => '1234567',
   'group' => 'Standard fields',
   'name' => 'email',
   'label' => 'Email',
   'type' => 'Email',
   'description' => 'description',
   'isRequired' => false,
   'extra' => [],
   'settings' => [],
]);

Parameters

  • formName (string) (Required) The form name

  • key (string) (Required) The field key

  • group (string) (Required) The field group

  • name (string) (Required) The field name

  • label (string) (Optional) The field label

  • type (string) (Required) The

  • description (string) (Optional) The field description

  • extra (array) (Required) The extra array

  • settings (array) (Required) The field settings

Return

  • boolean

Last updated