Is there a way to have useryesno prompts default to yes instead of no? Like in the example below, my providers want the pop up to default to yes so they can just click enter each time (there are about 48 prompts in all)
I told them they could click Y but they really want to click enter.
Stacey
{fn wmd_update(tcOT,tcVal,tcObsDate){
if tcOT=="" or tcVal=="" or tcObsDate=="" then
return ""
endif
if toupper(useryesno("Observation: "+tcOT+" Value: "+tcVal+" Date: "+tcObsDate+" Enter this in the database?"))==toupper("Yes") then
if (val(durationdays(tcObsDate,sub(str(document.clinicaldate),1,10))) < 0) then
userok("The date is not valid.")
return ""
endif
obsnow(tcOT,tcval,tcObsDate)
endif}
{if wmd_update('INITIAL WGHT',DOCUMENT.FIELD1,DOCUMENT.DATE1)<>"" then
DOCUMENT.TEMP1= DOCUMENT.TEMP1 + DOCUMENT.FIELD1 + " ("+DOCUMENT.DATE1+") "
DOCUMENT.FIELD1=""
DOCUMENT.DATE1=""
else
""
endif
}