Radio

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

radio
Figure 1. A radio input, rendered in the web browser.
def formFieldSet = api.createConfiguratorEntry() formFieldSet.inputs = [ api.inputBuilderFactory() .createRadioEntry('radio').setOptions('A'..'E') .buildContextParameter() ] return formFieldSet
api.inputBuilderFactory() .createRadioEntry('radio').setOptions('A'..'E') .getInput()
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

Reading input value in a line-item logic

Found an issue in documentation? Write to us.