Christie
Christie10mo ago

Auto Generated UI - Input argument label

Is there a way to make the input label in the auto generated UI separate from the variable name in the main function definition? Ex: variable name - policyIdIn but the label be "Policy ID" for the operator using the script
2 Replies
Christie
Christie10mo ago
example of something I'd want to do:
schema:
$schema: 'https://json-schema.org/draft/2020-12/schema'
type: object
properties:
policy_id_in:
type: string
description: ''
default: null
label: 'Policy ID' // is this supported?
has_auto_policy:
type: boolean
description: ''
default: null
label: 'Has auto policy?' // is this supported?
required:
- policy_id
- has_auto_policy
schema:
$schema: 'https://json-schema.org/draft/2020-12/schema'
type: object
properties:
policy_id_in:
type: string
description: ''
default: null
label: 'Policy ID' // is this supported?
has_auto_policy:
type: boolean
description: ''
default: null
label: 'Has auto policy?' // is this supported?
required:
- policy_id
- has_auto_policy
also, similarly, wondering if there's a way to have enum options where the label to the operator is different than it's value in airplane, we were able to submit an array of objects with label and value example from airplane script parameter that I will need to recreate in windmill --
doc_type: {
type: 'integer',
name: 'Document Type',
options: [{ label: "Application", value: 1 }, { label: "Med Pay", value: 2 }]
}
doc_type: {
type: 'integer',
name: 'Document Type',
options: [{ label: "Application", value: 1 }, { label: "Med Pay", value: 2 }]
}
rubenf
rubenf10mo ago
There are no ways right now but they are todo