Hello,
We built a new PE form for our primary care providers. We have a "Normal" button that when clicked it will add anything that is checked in the check-box and a "normal phrase". The problem is providers have to click the check-boxes first and then click on the normal in order for it to show on the edit field that is attached to an obs term, or the normal phrase will disappear and only the check boxes will show. Our providers would like it if they could click on the normal button and then click on the check-boxes without anything disappearing. Any ideas?
The easiest way to do this is to setup populating the field more like this
{fn PE_CheckBox(checkbox){
if checkbox == "" then
document.pe_finding = replacestr(document.pe_finding,"checkbox text","")
else
document.pe_finding = document.pe_finding + "checkbox text"
endif
}}{PE_Checkbox(document.checkboxname)}
Im guessing your form rewrites the content of the PE finding anytime a checkbox or dropdown is changed, this type of setup will adjust just the content related to the checkbox, although this could intriduce other issue if a checkbox is added and the text changed, but i think its better