Submit Buttons

Add a Submit Buttons to KAS Forms and Manual Forms.

To Add a Submit Button use the type "button", on Manual Forms JS is required or the form will not be submitted

Available names that will translate automatically

  • SAVE
  • UPDATE
  • ADD
  • MODIFY
  • CREATE
  • EDIT
  • FIND
  • SEARCH

 

addField([
   'type'=>'button', //required
   'inputType' => 'manual', //use manual for Manual Forms, submit for KAS forms
   'icon' => '<i class="fas fa-save"></i>', //optional save icon by default
   'name' => 'SAVE', //optional and translated automatically: SAVE, UPDATE, ADD, MODIFY, CREATE, EDIT, FIND, SEARCH
   'value' => 'THE TEXT OF THE BUTTON AFTER name', //required
   'attributes'=>'', //optional
   'blockClass' => '', //optional, the class for the parent container
   'blockStyle' => '', //optional, the style for the parent container (without style="")
   'id'=>'', //optional (when no id is provided the id is "savebtnX" where X is the count of the button, ex, 0, 1, 2, etc)
   'style' => 'color:red', //optional
   'class'=>'right', //optional (add right to show on the right side of the form)
   'dataString' => 'data-optional="some value"' //optional
]);