I have a script that I adapted and assigned to a button in LiveCycle to create a button that will reset all but two selected fields when the user clicks it....
but the script is clearing all the fields in the form, including the ones not named in the script.
I'm hoping there is a simple way to alter the script to retain those two selected fields and reset all the others?
Here is the existing script:
xfa.host.resetData("xfa.form.form1.requestor,xfa.form.form1.computerID,xfa.form.form1.callback,
xfa.form.form1.dept_division,xfa.form.form1.location,xfa.form.form1.desc_brief,
xfa.form.form1.desc_detail,xfa.form.form1.resolution,xfa.form.form1.radio_priority,
xfa.form.form1.chk_dm,xfa.form.form1.chk_acc,xfa.form.form1.chk_copy,xfa.form.form1.chk_ms,
xfa.form.form1.chk_ent,xfa.form.form1.chk_ws,xfa.form.form1.chk_warr,
xfa.form.form1.reviewer,xfa.form.form1.review_notes,xfa.form.form1.Workorder");
Also note that ALL of the fields that you want to reset must be listed between the (" and ").
xfa.host.resetData
("xfa.form.form1.requestor,xfa.form.form1.computerID,xfa.form.form1.callback,xfa.form.form1.dept_division,xfa.form.form1.location")