There’s some javascript quirkiness with the multi select elements having “[]” in the name, which is why elementByID is used in the proposed fix to access the object instead of f.$fldname
Set in Lists/Race as default that which is the majority in a particular practice. For minorities, physician will have to remember to use drop down menu, otherwise AMC report will be a reminder.
Saves a bit of clicking while creating new accounts.
fsgl - This is a free student clinic at a University in south Texas. There is not default average race and they have requirements for reporting unrelated to MU. So they really need to make it required for the student staff.
In addition to not handling required multiselects properly, the validation code was also not escaping the Field Titles properly for other required fields.
To demonstrate this, change the title of DOB to DOB\ (with the backslash) in the name then comeback to the new/create patient screen. Javascript console will show an unterminated string literal error, and the save button will fail.
Switching to addslashes rather than htmlspecialcharacters correct this.
Because these strings are javscript literals they need to be handled this in this manner.
Refer to Step 4 exceptions in this document for further details.