Need checkbox to remain selected if set

I have this checkbox when checked sets the priority on the case. Currently the value is defaulted to 0. When its set the value updates from 0 to 100 and I should be able to check the value and if its 100 when the end user returns they will see the box is checked and can uncheck it to reset the case value back to 0.

Currently I have the functionality of setting/saving the value updating the case all working with a process model. Even when they return they can check the box again and it will set the value back to 0. But I cannot figure out how to keep the box checked like the screenshot when the end user returns. It’s always unchecked.

local!choices: if(local!case.priorityRank > 0, 0, 100),
local!updatePriorityRank: null,
 
a!sectionLayout(
      label: "",
      contents: {
        a!sectionLayout(
          label: "Case Priority",
          contents: {
        a!checkboxField(
          label: "",
          choiceLabels: {"Priority"},
          choiceValues: {local!choices},
         
          value: local!updatePriorityRank,
          saveInto: local!updatePriorityRank,
          choiceStyle: "STANDARD"
        )
    }
)

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data