sartography / cr-connect

0 stars 0 forks source link

hide_expression when enum has not been filled out no longer works #518

Closed calexh-sar closed 2 years ago

calexh-sar commented 2 years ago

An example of this is in the IDS Approval workflow in the Enter Staff Training User Task. The StaffTrainingDetails text files should be hidden if the StaffTraining enum is blank, i.e., no selection made, or No is selected. Before the enum refactor, StaffTraining.value != "No" or StaffTraining.value == None worked. Now, StaffTraining != "No" or StaffTraining == None does not work. the StaffTraining != "No" part does work, but the StaffTraining == None does not.

image.png

Leashys commented 2 years ago

This was fixed within some iteration of enum refactors. Documenting that the correct way to do this is hide_expression should be set to StaffTraining == "No" or not StaffTraining in this specific case. Generally, to use a hide_expression on page load, it should be set to not Variable