make fields read only in infopath form

I have an infopath form which has a button that on-click submits to a sharepoint server, i need to make the fiels inside the form read only after submition so that no one can change the values of the fields after being submiteed, i dont want to use Digital signature.

I there any way that we can add a rule in the button
Who is Participating?

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

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.

(use the expression box to make the fields read-only).  Disable the submit button on the infopath menu bar and create a submit button on the form that they have to use.

On the submit, create a rule that switches the view to the read-only view and switches the submit button on the form to a button that only closes the form.

hope this helps
HassanayAuthor Commented:
Thanks akshay0309:,
I've made the button that submits the form & disabled the menu bar submit, but how i can make the read only view?

Clay FoxDirector of Business IntegrationCommented:
With InfoPath 2007 you can set an entire view read-only in view properties.  So copy your main view and then set readonly.  In 2003 you would need to change your fields to expression boxes or set each field readonly.

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
HassanayAuthor Commented:
Thanks , Readonly view is a good solution
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

From novice to tech pro — start learning today.