Extreme newbie question on clear button - InfoPath Dev
in

InfoPath Dev

Extreme newbie question on clear button

Last post 01-18-2007 10:49 PM by Shilpa Pitta. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-18-2007 07:07 AM

    • kurto
    • Not Ranked
    • Joined on 01-18-2007
    • Posts 1

    Extreme newbie question on clear button

    Using InfoPath 2003 and have a simple form with a few text boxes.
    I have created a button thats action is 'rules and custom code'

    On click I want it to clear a textbox. I have set up the form to use vbscript.

    How do I reference this textbox while editing form code?
  • 01-18-2007 10:49 PM In reply to

    Re: Extreme newbie question on clear button

    Hi Kurto and welcome to the infopath forums,

    XDocument.DOM.selectSingleNode("/my:myFields/my:field1").text = ""
    Here reference the text box with its field name, below i mentioned it as field1

    Hope this helps you!
    Shilpa
    INFOPATHDEV India
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.