inputForm.json
inputForm.json
The JSON schema allowing you to define the input parameters. See the JSON Schema page for syntax details.
Field types
checkbox
A true/false checkbox that supports the option of being required, for example when you want the checkbox checked to accept the terms of use. This is done by setting minValues is to 1. (corresponds to the booleanType in xml).
data
Data such as files. The optional nameFilter is a data filename filter pattern for parts of the expected filename.
disclosureSection
The disclosure section is an expandable section containing fields which can be used to hide seldom used options in the input form. The fields in this section are always validated, even if it is collapsed. Supported attributes are id, type, label, helpText, tooltipText, value, hidden and updateRenderOnChange
featureSection
Feature sections are preceded by a checkbox. When the checkbox is checked, the section expands to show the fields inside the section and their content is validated. When the checkbox is unchecked, the section collapses and the fields inside the section are not validated. This type is best suited for toggling a feature or step in a pipeline on or off. FeatureSections can contain disclosureSections. Supported attributes are id, type, label, helpText, tooltipText, value, hidden, updateRenderOnChange and disabled.
fieldgroup
Can contain parameters or other groups. Useful for building complex data structures. Can have repeating sets of parameters, for instance when a father/mother/child choice needs to be linked to each file input. So if you want to have the same elements multiple times in your form, combine them into a fieldgroup. Fieldgroups do not support the emptyValuesAllowed attribute.
integer
Corresponds to java Integer. Supports min and max values.
number
The value is of Number type in javascript and Double type in java. (corresponds to doubleType in xml).
radio
A radio button group to select one from a list of choices. The values to choose from must be unique.
section
For splitting up fields, to give structure to the form. Rendered as subtitles. No values are to be assigned to these fields.
select
A dropdown selection to select one from a list of choices. This can be used for both single-level lists and tree-based lists. A choice entry set to disabled can be helpful to build the hierarchy tree without being selectable.
text
To display informational messages. No values are to be assigned to these fields.
textbox
Corresponds to stringType in xml. Supports regex and length limitations.
Field Parameter Attributes
These attributes can be used to configure the fields.
choices
A list of choices with for each a value, text (is label), selected (only 1 true supported), disabled.
parent can be used to build hierarchical choice trees.
availableWhen can be used for conditional presence of the choice based on values of other fields.
Parent and value must be unique, you cannot use the same value for both.
dataFilter
For defining the filtering when type is 'data'. Use nameFilter for matching the name of the file, dataFormat for file format and dataType for selecting between files and directories. (To see the data formats, open the file details in Platform Core and look at the Format on the data details. You can expand the dropdown list to see the syntax.) The dataType="file" also accepts S3 and HTTP(S) URLs.
disabled
Shows the parameter but makes editing it impossible. The value can still be altered by onRender.js.
dropValueWhenDisabled
When this is present and true and the field has disabled being true, then the value will be omitted during the submit handling (on the onSubmit result).
emptyValuesAllowed
When maxValues is 1 or not set and emptyValuesAllowed is true, the values may contain null entries. Default is false.
fields
The list of sub fields for type fieldgroup.
helpText
A helper text about the parameter. Will be displayed in smaller font with the parameter.
hidden
Makes this parameter hidden. Can be made visible later in onRender.js or can be used to set hardcoded values of which the user should be aware.
label
The display label for this parameter. Optional but recommended, id will be used if missing.
max
Maximal allowed value for 'integer' and 'number' type.
for 'integer' type fields the minimal and maximal values are -100000000000000000 and 100000000000000000.
for 'number' type fields the max precision is 15 significant digits and the exponent needs to be between -300 and +300.
min
Minimal allowed value for 'integer' and 'number' type.
for 'integer' type fields the minimal and maximal values are -100000000000000000 and 100000000000000000.
for 'number' type fields the max precision is 15 significant digits and the exponent needs to be between -300 and +300.
maxValues
The maximal amount of values that need to be present. Default when not set is 1.
minValues
The minimal amount of values that needs to be present. Default when not set is 0. Set to >=1 to make the field required.
minMaxValuesMessage
The error message displayed when minValues or maxValues is not adhered to. When not set, a default message is generated.
maxLength
Only applied on type="textbox". Value is a positive integer.
minLength
Only applied on type="textbox". Value is a positive integer.
placeHolderText
An optional short hint ( a word or short phrase) to aid the user when the field has no value.
regex
The regex pattern the value must adhere to. Only applied on type="textbox".
regexErrorMessage
The optional error message when the value does not adhere to the "regex". A default message will be used if this parameter is not present. It is highly recommended to set this as the default message will show the regex which is typically very technical.
tooltipText
An optional HTML markdown-formatted text describing detail what the user is expected to enter in the field. This text is displayed when selecting the (i) icon next to the field and is avaialble for every field type.
updateRenderOnChange
When true, the onRender javascript function is triggered each time the user changes the value of this field. Default is false.
value
The value of the parameter. Can be considered default value. Can be an array for multi-value fields. For number-type values the exponent needs to be between -300 and +300 and max precision is 15. For integer-type values the value needs to between -100000000000000000 and 100000000000000000"
Examples
disclosureSection vs featureSection
Disclosure sections always have their fields validated while feature sections only have their fields validated when the checkbox is checked and thus their contents are expanded.
Use disclosure sections to hide complexity, but still take the values of that section into account. Use feature sections to enable or disable parts of your pipeline.
The following code is an example inputForm.json with both collapsible section types.

Tooltip vs Placeholder example
The tooltip text is only displayed when you hover over the (i) symbol next to the field and can be used for extensive explanations with formatting. The placeholder text is limited in size and only shown when no value has been entered in the field.

Experimental Features
Streamable inputs
Adding "streamable":true to an input field of type "data" makes it a streamable input.
Last updated
Was this helpful?

