How to resolve Checkbox error on interface ?

Hi Community,

I have created a checkbox. It is coming properly on interface but when i try to save any of the values it gives error.

Here is the attached screenshot.

 

Below is the SAIL that i am using to create checkbox - 

a!checkboxField(
    label: "Tools Affected",
    labelPosition: "ABOVE",
    choiceLabels: {"1262", "1264", "1266","1268","1270","1272"},
    choiceValues: {1, 2, 3, 4, 5, 6},
    value: ri!ToolsAffected,
    saveinto: ri!ToolsAffected,
    validations: {}
),

What wrong i am doing here ?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Hey prais1852 (prasoonp) , can you please share a snippet of your code so I can see where you went wrong? Here's an example:

    load(
    local!test: {"Test1","Test2","Test3","Test4"},
    local!testIds: {1,2,3,4},
    local!valueSaved: {},
    a!formLayout(
    firstColumnContents: {
    a!checkboxField(
    label: "test",
    choiceLabels: local!test,
    choiceValues: local!testIds,
    value: local!valueSaved,
    saveInto: local!valueSaved
    )
    }
    )
    )
Reply
  • 0
    Certified Lead Developer
    Hey prais1852 (prasoonp) , can you please share a snippet of your code so I can see where you went wrong? Here's an example:

    load(
    local!test: {"Test1","Test2","Test3","Test4"},
    local!testIds: {1,2,3,4},
    local!valueSaved: {},
    a!formLayout(
    firstColumnContents: {
    a!checkboxField(
    label: "test",
    choiceLabels: local!test,
    choiceValues: local!testIds,
    value: local!valueSaved,
    saveInto: local!valueSaved
    )
    }
    )
    )
Children
No Data