Anyone have a suggestion or have had this same problem with form placement in a chart note. When hitting a action button to pull form in after current it is putting in before current. (We are charting on the current form before clicking the action button to pull in the other form). Any solutions or suggestions?
We ended up writing a function to get them to insert after. It is hard coded for the form it is located in. Haven't found a way to dynamically call the current form name. This function is in the OUT-HPI Review form and the example usage will insert the Adult ACV-CCC form after the HPI form:
{ fn OUT_INSERT_AFTER_HPI(strInsertFormPath,strInsertFormName) {strFORMLIST = getfield(GET_FORM_LIST(),"|","") numWHEREHPI = match(strFORMLIST,"Enterprise" + numtoascii(092) + "^OUT-HPI Review") numWHEREHPI=numWHEREHPI+1 ADD_FORM_COMP(strInsertFormPath,strInsertFormName, str(numWHEREHPI))} }
{OUT_INSERT_AFTER_HPI("EnterpriseCCC", "Adult ACV-CCC")}
Thank you i will try this!