I have a requirement where I need to auto select few checkboxes on a checkbox fi

I have a requirement where I need to auto select few checkboxes on a checkbox field based on the selection done by user on the same checkbox field.
PFB example--
load(
local!result,
with(
a!formLayout(
firstColumnContents:{
a!checkboxField(
label:"Testing",

choiceLabels :{"All","Test1","Test2"},
choiceValues:{"All","Test1","Test2"},
value:if(rule!TipCheckIsNullV2(local!result),
{},
{local!result}),
saveInto:{local!result,
a!save(local!result,if(contains(result,"All"),{"All","Test1","Test2"},{local!result}))
},
required:true
),
a!textField(
value:local!result
)
}
)
)
)

I am using the above code to auto select both "Test1" and "Test2" if "All" is selected. Though the value is storing c...

OriginalPostID-220948

OriginalPostID-220948

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data