Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The radio input field lets the user pick one input from a fixed set of alternatives.

radioImage Removed radioImage Added
Expand
titleForms
Code Block
languagegroovy
themeMidnight
linenumbersfalse
def formFieldSet = api.createConfiguratorEntry()

formFieldSet.inputs = [
    api.inputBuilderFactory()
        .createRadioEntry('radio').setOptions('A'..'E')
        .buildContextParameter()
]

return formFieldSet
Expand
titleIn input generation mode (input generation mode)
Code Block
languagegroovy
themeMidnight
linenumbersfalse
api.inputBuilderFactory()
        .createRadioEntry('radio').setOptions('A'..'E')
        .getInput()
Expand
titleIn header Logics
Code Block
languagegroovy
themeMidnight
linenumbersfalse
processor.addOrUpdateInput(                 //❶
        'ROOT',
        api.inputBuilderFactory()
                .createRadioEntry('radio').setOptions('A'..'E')
                .buildMap()
)

❶ the processor can be one of the quoteProcessor, cProcessor, etc., which references subclasses of the CalculableLineItemCollectionBuilder

Expand
titleReading input value
Code Block
languagegroovy
themeMidnight
titleReading input value in a line-item logic.
linenumbersfalse
def value = input.radio as String