Not able to reset fields using XSLT - InfoPath Dev
in

InfoPath Dev

Not able to reset fields using XSLT

Last post 04-09-2010 06:25 AM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-08-2010 10:44 PM

    Not able to reset fields using XSLT

    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 

  • 04-09-2010 06:25 AM In reply to

    Re: Not able to reset fields using XSLT

     Well,for one thing, your XSLT doesn't use any namespaces (except xmlns:xsl), and the fields in your form surely have a namespace.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.