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 / November 2005

Tip: Looking for answers? Try searching our database.

How to make an Infopath form read only after it is submitted.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mary T. - 05 Nov 2005 19:24 GMT
My company uses InfoPath extensively to route certain types of information to
the proper employees to get handled. Once a form has been submitted we want
the fields to be read-only and the submit button to disappear. We figured out
how to hide the submit button after the form was submitted, but the fields
are still active. We think we found a way to make the fields read only, but
the rules have to be set on each field. Our form is very complex and we
determined we would have to make about 600 changes!! Is there an easier way?

Mary
Franck Dauché - 05 Nov 2005 20:03 GMT
Hi Mary,

You can do it by code, by catching the OnBeforeChange event on each control
and Cancel the event.  That way you won't have to modify any control on your
form.

Does it make sense?

Regards,

Franck Dauché

> My company uses InfoPath extensively to route certain types of information to
> the proper employees to get handled. Once a form has been submitted we want
[quoted text clipped - 5 lines]
>
> Mary
Mary T. - 05 Nov 2005 20:18 GMT
I have multiple submit buttons in the form. Does that make a difference or
can I still try your suggestion?

Mary

> Hi Mary,
>
[quoted text clipped - 17 lines]
> >
> > Mary
Franck Dauché - 05 Nov 2005 20:38 GMT
The submit buttons can be hidden with conditional formatting (as you pointed
out in your original post). The Event cancelling is great to prevent changes
in textboxes, checkboxes, etc.
You just have to add one node in your schema for read-only (false by
default).  Once submitted, that node can be changed from false to true.  You
hide or disable some controls based on that value and you catch the
OnBeforeChange event at the form level (1 single event for the entire form).  
If the read-only node is true, you cancel the change (regardless of the
control that triggered that event).
Now you ca have multiple read-only nodes and make only part of your document
read-only, depending on the Submit button used.  It depends on your business
logic..

Regards,

Franck Dauché

> I have multiple submit buttons in the form. Does that make a difference or
> can I still try your suggestion?
[quoted text clipped - 22 lines]
> > >
> > > Mary
Jose Emilio Leon - 08 Nov 2005 01:06 GMT
Mary,

Have you tried using digital signatures? Users can sign the form using
digital certificates and prevent tampering the whole form or certains
fields.

You can find more information at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_tr/h
tml/odc_INF_Lab_01.asp


HTH,
Jose Leon
SkyXoft
It's not just workflow. It's about the process.
http://www.businessandprocess.com

> My company uses InfoPath extensively to route certain types of information to
> the proper employees to get handled. Once a form has been submitted we want
[quoted text clipped - 5 lines]
>
> Mary
 
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.