How to Trigger infopath form button click event from the custom aspx page on sharepoint using xmlformview - InfoPath Dev
in

InfoPath Dev

How to Trigger infopath form button click event from the custom aspx page on sharepoint using xmlformview

Last post 06-17-2012 10:06 AM by robwett. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-29-2012 05:30 AM

    How to Trigger infopath form button click event from the custom aspx page on sharepoint using xmlformview

    How do i trigger infopath form button click event from the sharepoint custom aspx page using xmlformview to run a Javascript code to be executed.

    In infopath form i have a hidden button with some other many fields and is published on sharepoint. I want to trigger the hidden button click event to run some javascript code  from the custom aspx page on sharepoint  using the xmlformview .  Does anyone have any idea on this.

  • 06-17-2012 10:06 AM In reply to

    Re: How to Trigger infopath form button click event from the custom aspx page on sharepoint using xmlformview

    The only way that I know how to do this is to implement the formView_SubmitToHost method in the XmlFormView. Set the button in the InfoPath form to submit data using the ASP.Net choice.

    Now every time you hit that button it will call the formView_SubmitToHost method and you can do what you like in there. There is only the one SubmitToHost method, so if you want to use it for different things just do a switch on the e.AdapterName.
    Filed under:
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.