To include a form in your logic, build an input that references the form by its name:
Expand |
---|
|
Code Block |
---|
language | groovy |
---|
theme | Midnight |
---|
linenumbers | false |
---|
| def formFieldSet = api.createConfiguratorEntry()
formFieldSet.inputs = [
api.inputBuilderFactory()
.createConfiguratorInputBuilder('formuserInput')
.buildContextParameter()
]
return formFieldSet |
|
Expand |
---|
title | In input generation mode (syntax check mode) |
---|
|
Code Block |
---|
language | groovy |
---|
theme | Midnight |
---|
linenumbers | false |
---|
| api.inputBuilderFactory()
.createConfiguratorInputBuilder('formuserInput', configuratorLogicName, true)
.getInput() |
|
Expand |
---|
|
Code Block |
---|
language | groovy |
---|
theme | Midnight |
---|
linenumbers | false |
---|
| processor.addOrUpdateInput(
'ROOT',
api.inputBuilderFactory()
.createConfiguratorInputBuilder('formuserInput')
.buildMap()
) |
|
Any inputs that are part of the form can be read normallyYou need to give each form an input name. The inputs from that form will be accessible via that name on the input
binding variable:
Code Block |
---|
language | groovy |
---|
theme | Midnight |
---|
linenumbers | false |
---|
|
input.userInput.nameOfInput as ValueType |