SharePoint 2010 and InfoPath Web Part

I have a custom form (InfoPath) which allows adding a row to a SharePoint list using the forms submit button to write the list item.  When the form finishes I have the form close.   However, the Web Part shows a message where the form was saying that the form has been closed.  The users don't like that message and would prefer no message or something more meaningful like "Thanks for looking at the form.  See you later."

I don't see where or how to accomplish this.
LVL 1
Howard BashSenior Software EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jamie McAllister MVPSharePoint ConsultantCommented:
Edit the page that the form resides on and add a Content Editor Web Part. Set the chrome for the WP to be invisible.

Add some JQuery in the CEWP to set the problematic text to blank on page refresh.

3 minutes into this video I show how you can edit the page of a form (works for normal forms as well as Infopath); https://www.youtube.com/watch?v=eIOYP2q5OUw

For the JQuery it'd be something like;

$("#TheDivOnTheForm:contains('Form Closed')").text('Thanks for looking at the form.  See you later.');

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Howard BashSenior Software EngineerAuthor Commented:
This looks extremely promising.  I hope to get to this early this week and will get back to ASAP.

THANKS!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.