Could not display interface. Please check definition and inputs.

Hello,

I'm trying to implement a 'Check box' functionality, with only one choice label and one value, when I do that it throws me the following error

"Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!checkboxField [line 427]: A checkbox component [label=“”] has an invalid value for “value”. All selected values must be present in the choiceValues array, but value was 1 and choiceValues was 1."

Also please let me know what data type to assign for (1) Check box (2) Radio Buttons (3) Drop Down

  Discussion posts and replies are publicly visible

Parents
  • Hi nellore,

    Below notes might be helpful for you
    ->Choices display in the same order as defined in the Choice Labels parameter. The Choice Labels argument cannot be null.
    ->Choice Labels and Choice Values must be the same length.
    ->Choice Values cannot contain nulls or duplicate values.

    a!checkboxField(
    label: "Label name",
    instructions: "Instruction content",
    choiceLabels: {
    "Choice labelname"
    },
    choiceValues: {
    "Choice labelvalue"
    },
    value: ri!ruleInput,
    saveInto: ri!ruleInput
    )
Reply
  • Hi nellore,

    Below notes might be helpful for you
    ->Choices display in the same order as defined in the Choice Labels parameter. The Choice Labels argument cannot be null.
    ->Choice Labels and Choice Values must be the same length.
    ->Choice Values cannot contain nulls or duplicate values.

    a!checkboxField(
    label: "Label name",
    instructions: "Instruction content",
    choiceLabels: {
    "Choice labelname"
    },
    choiceValues: {
    "Choice labelvalue"
    },
    value: ri!ruleInput,
    saveInto: ri!ruleInput
    )
Children
No Data