...
Licenses |
| ||||||||||||||||||
Since |
|
Forms can be used to give users the possibility to interact with your processes and applications and to create, edit and delete data.
Table of Contents |
---|
How does it work?
In order to define a form in PIPEFORCE, you need at least a JSON schema and the form configuration.
...
The glue of all this is the form configuration which defines, how the form should use the schema and display the fields. Additionally any information about layouting a form’s fields goes into the form configuration.
How to handle the form output
By default, after a submit, the data of a form is automatically stored into the property store under a new property having this key path:
...
Info |
---|
Note: Be careful since in this example it would return the instances from all objects of myApp. Learn more about filtering properties from the property store in this section Property Store. |
How to load and edit input data in a form
After a form has been submitted, for each submit a new instance property is created in the instance path of an object, for example:
...
This all is automatically done for you in case you call a form using a list.
The form configuration
The last step to create and configure a new form is to create a form configuration file. This is a configuration file in JSON format which defines important attributes of a form like its title or layout information.
...
To reach custom layout, fields behaviour, file uploads, custom buttons and more, additional layout
attribute of form configuration file needs to be used. Layout uses different approach to define which fields to show. Only field referenced in this structure are rendered. For details see following sections.
Change orientation of form fields
You can change this default by configuring orientation of the layout in the form configuration.
See this section for more details: Form - Orientation
Change appearance of form fields
Beside the orientation (vertical, horizontal) of form fields, also the appearance (color, border, icons, aso) can be changed inside the layout section.
See this section for more details: Form - Look & Feel
Custom buttons
Replacements for default Submit button can be defined by render
attribute of boolean field in layout section.
See this section for more details:Form - Buttons
File upload
In layout section it is also possible to configure that set of schema properties defines form upload.
See this section for more details: Form - Upload