Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Help with hosting infopath!

  Asked By: Neal    Date: Mar 09    Category: Sharepoint    Views: 1092

I have a aspx page hosting an infopath form, and the textbox in the infopath
form always does a postback when "enter" key is hit, what is the best way to
prevent this from happening?



1 Answer Found

Answer #1    Answered By: Benito Carey     Answered On: Mar 09

I haven't ever hosted an infopath form in asp page but since you would have
control over what can go in that page you could put in a simple javascript. This
javascript could detect any keypress on the page and capture that event and stop
the form from being submitted. If this would work a google search or two should
lead you to the code that would do the trick.

Didn't find what you were looking for? Find more on Help with hosting infopath! Or get search suggestion and latest updates.