Set name of form from form fields on Save? - InfoPath Dev
in

InfoPath Dev

Set name of form from form fields on Save?

Last post 06-27-2005 10:55 PM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-27-2005 03:11 PM

    Set name of form from form fields on Save?

    Hello,

    is it possible to have InfoPath form use fields from itself to create the name that the form is saved as?

    Example, we are using an InfoPath form to capture employee time off days. After someone fills out the form, we want to use their name field and month/year field to create the name of their saved form.

    Please let me know if this can be done and how to do it.

    thanks,
    carla.
  • 06-27-2005 10:55 PM In reply to

    Re: Set name of form from form fields on Save?

    Hi Carla and welcome to the board!
    Yes this can be done and is a common practice. You need to provide an OnSubmit or OnSave handler and set the name of the file in code. There should be an example of how to do this in chapter 10 of my book. If you don't have that, it's pretty straightforward. Check out examples in the SDK, or ping us back, and we'll dig up some code.


    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.