I am using a depression screening form that has a calculate button for the first part of the form and based on results you can proceed to the long version. I have a button that takes you to the next tab but is there a way that you can make one button jump to a different tab/form and clear a text field (score) at the same time? My providers do not want both scores in and do not want to have to clear one field and then go to the next part of the form.
Sure, just set your button to RUNPROCESS, clear your fields on the current form, then add/open the new form.
I know how to clear the fields with the set values options and I know how to set the open new form with the Run Process but how do you set the button to only clear the field if pushed and jump to the new form at the same time.
in one button set to RUNPROCESS, then
DOCUMENT.variable = ""
OBSNOW("obs", "")
…
ADD_FORM_COMP(…)
Ok thanks this works, now would I use the same process to get the button to jump to another tab and clear a field at the same time?
replace ADD_FORM_COMP with JUMP_TO_TAB(...).
I tried it and it will clear the score but not go to tab here is a copy of the two tabs i need of you or anyone can look and see what i am doing wrong. Thanks
need quotes around tab name:
OBSNOW("GDS SHORT", "")
JUMP_TO_TAB("Part-2")
works perfectly, thanks so much