Other form options

 

Possible options:

form:
  multipart: true
  title:
    field: description
    edit: Title for edit
    show: Title for show
  height: 600
  labels_pos: top
 

 

If the form input holds multipart elements it must be defined by option multipart.

 

When document is edited, default edit title looks like this:

Edit : My model name : document.id

 

If title/field option is defined value of field description will be inserted into title resulting in:

Edit : My model name : description value : document.id

 

Custom edit title can be defined by title/edit options. Title can also be customized when just showing the record with title/show option.

 

Height option (in pixels) defines height of the form element. Form is automatically resized when displayed for edit. But sometimes form has only few elements and it is more convenient to force height of a form with height option.

 

labels_pos defines positions of the labels on the form. By default labels are positioned left to input field and are automatically reordered to top, when displayed on mobile device. labels_pos: top forces labels to be displayed on top of the input field, when form is used on non-mobile devices.


Last update: 18.04.2021