Hello, I have a checkbox called "Risk Assessment" with two possible values, "Security Risk" and "Licenses Risk". I require both values to be checked before a workflow can transition to the next (final) state. How can I do this? I have successfully used the Power apps and SIL code for validators before, and for this I tried:
string[] checkbox = gadget_getMultiValues(argv, "Risks Assessed");
if( arrayElementExists(checkbox,"Security Risk") && arrayElementExists(checkbox,"Licenses Risk") ) {
return true; }
else {
return false, errMsg; }
but it's not working. I've examined the checkbox array and it always seems empty, and the argv array, which has numbers in it? Has anyone got gadget_getMultiValues to work for checkboxes, or know of a way that works?