...
Expand |
---|
|
. Code Block |
---|
| def value = input.decimal as BigDecimal |
|
...
Expand |
---|
|
. Code Block |
---|
| def value = input.integer as Integer |
|
...
You can restrict the set of values that the end user can provide to the input by using the setMinsetFrom()
and setMaxsetTo()
methods.
Code Block |
---|
|
api.inputBuilderFactory()
.createIntegerUserEntry('NaturalNumber')
.setFrom(1)
.setMinsetTo(0100)
.getInput() |
Warning |
---|
As of version 7.3, the input validation has not been implemented in the frontend application. However, you can still set these properties in the Groovy logic. |