But I want this to be conditional based on a boolean variable selection by the user. I tried to make this change in the raw widget configuration, but I get an error message that it must be a variable value. How can I do this properly?
I am not sure if this is possible to do within the current widget. One option would be to have two widgets (one with edits turned on, and one without) in a section and have conditional visibility on which section / widget you are displaying.