Hi,
I am trying a little bit differently to reset fields to blank using XSLT code. Here's my approach:
A. Create infopath template with couple of controls (a drop down, a text box and a button) - See image attached
B. Set ID in button properties to 'reset_code' - See image attached
C. Create an reset_code.XSLT file and attach it as resource file to Infopath template. -- See code attached
Expected output Onclick of reset button the values entered in field1 and field2 should be set to blank.
What am I doing wrong? I have seen this approach work at one of my clients place and want to try out more complex operations.
Thanks,
ND