Any clue if you can make a checkbox "uncheckable" if another option is made
Made a "no known allergies" checkbox in a form which I'd like to make "uncheckable" if the patient actually has allergies in their chart
Yes. You can either just clear the checkbox if the other conditions are true, or clear the checkbox and hide it if they're true.
{if whatever then
DOCUMENT.CHECKBOX = ""
endif}
I'm trying to make it so if there are allergies in the patient's chart then the checkbox either disappears or becomes greyed out and can't even be selected
then you'd want to create a visibility region containing the checkbox. in the visibility, you'd add code to check for the allergies.
MEL_ALL_AFTER() <> ""
A couple of other options are:
1. Hide it in visibility regions - controlling statement could be: {obsprev("NKA") == ""} so you check box is visible if no previous observation has been recorded.
2. Use the "Advanced" tab>Enable/Disable field of item config dialogue to dim the checkbox, thus making it uncheckable. If the statement there is true the box can be checked; if the statement is false the box cannot be checked but appears dimmed out.
same statement works there: {obsprev("NKA") == ""}
I did #2 in the last post from Paul Atkinson and it is indeed greying out the box but now its putting a FALSE in my note ... how do i get rid of that
Negate that last one ... I had a text translation that shouldn't have been there
Check the translation field for you button and/or whereever you have the all_after() being translated. Post it here if you need help.