Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / May 2005

Tip: Looking for answers? Try searching our database.

Can an entire form be made read-only when it is e-mailed?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kerri K - 25 May 2005 15:48 GMT
We have a form the we have our sales reps fill out every week stating what
they did in the field all week.  When they complete the form, it gets
e-mailed to their managers.  Can the form be read-only for the managers?  Or
even better, is there a way to shut off the "save changes" box that pops up
everytime someone opens the form via the e-mail?
Greg Collins [InfoPath MVP] - 25 May 2005 22:56 GMT
Sounds like something is happening during the OnLoad code in your form. Otherwise there should be no "save changes" dialog box (unless the user makes changes).

To prevent the dialog box you can set the dirty flag on the XDocument object to false.

There is no "readonly" flag you can set.... but you can work something out to where you have a separate view that is a read-only view. Before the form gets emailed, you set a read-only flag that you create in your DOM. When the user gets the form in Email, the flag instructs the form to automatically switch to the read-only view. Just remember to remove the views from the "View" menu so the user can't switch back to the editable view.

Signature

Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com

We have a form the we have our sales reps fill out every week stating what
they did in the field all week.  When they complete the form, it gets
e-mailed to their managers.  Can the form be read-only for the managers?  Or
even better, is there a way to shut off the "save changes" box that pops up
everytime someone opens the form via the e-mail?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.