Form Types

Common Options

Key
Description

form.title

form.subtitle

form.type: Wizard

Key
Description

form.color

HTML color Color of form

form.shape

Shape of wizard tabs see Form Wizard Git

form.validateOnBack

Applies to wizard only

form.errorColor

form.backButtonText

form.nextButtonText

form.finishButtonText

form.transition

CSS transition used when changing tabs

form.shape

Used for wizard wizard for type

state.startIndex

0 based index of the tab the form will have selected

page[ {pageNumber} ].visible

set to `false` to hide this page, default is `true`

Form Design

Form Types

Form Wizard Git

type

This is the object type for this field, e.g. input, radio, dropdown etc.

see: https://icebob.gitbooks.io/vueformgenerator/content/fields/core-fields.html

visible_calc - Boolean or string expression

Field components can be shown or hidden programatically. The equation of the visible_calc key is evaluated when it's referenced parameters change and the boolean Boolean result will control the field visibility.

When a visible_calc parameter is supplied, the visible key is ignored.

Accordions, v-Tabs and rowLists:

These component types have their own sub data model so this.model will reference the object within the rows array.To see the entire data model you can reverence this.options.fullModel This allows you to look outside of your row or tab.

JSONPath Library

You can also take advantage of the jsonPath library and quickly search arrays for matches. This is a very powerful function and worth reading the documentation.

Documentation : https://github.com/json-path/JsonPath

Bootstrap Columns

Add custom CSS classes to styleClasses

https://www.w3schools.com/bootstrap/bootstrap_grid_examples.asp

omit periods

// e.g.:

"styleClasses": "col-md-offset-2 col-md-6"

Field Validation

Sample Wizard JSON

Validation

Last updated