Lock an entire form - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » Lock an entire form Lock an entire form Last post 11-03-2005 02:00 PM by Patrick Halstead. 6 replies. Page 1 of 1 (7 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 10-25-2005 06:56 AM leetrotter Joined on 10-14-2005 Canada Posts 12 Lock an entire form Reply Contact Hi All,Is there a quick and easy way to lock all the fields on an entire for without signing them?ThanksLee 10-25-2005 09:51 AM In reply to franck Joined on 10-03-2005 USA Posts 310 Re: Lock an entire form Mark as Not AnswerMark as Answer... Reply Contact Hi Lee,"Locked" such as in "Unable to change in InfoPath" (read-only), or "Locked" so that the xml cannot be change using Notepad for example?Regards,Franck Dauché 10-26-2005 06:11 AM In reply to leetrotter Joined on 10-14-2005 Canada Posts 12 Re: Lock an entire form Mark as Not AnswerMark as Answer... Reply Contact Locked so that if the user opens the form in infopath it cannot be changed. The only way I was able to figure it out was to go to each field and set a condition that set the control to read only based on a hidden fields flag. 10-26-2005 06:30 AM In reply to franck Joined on 10-03-2005 USA Posts 310 Re: Lock an entire form Mark as Not AnswerMark as Answer... Reply Contact Hi Lee,An alternative is to catch a OnBeforeChange event at the form level and to cancel the event. This way, you don't have to physically modify each individual controls.Regards,Franck Dauché 11-02-2005 06:40 PM In reply to qwer Joined on 10-04-2005 Posts 49 Re: Lock an entire form Mark as Not AnswerMark as Answer... Reply Contact quote:Originally posted by franckHi Lee,"Locked" such as in "Unable to change in InfoPath" (read-only), or "Locked" so that the xml cannot be change using Notepad for example?Regards,Franck DauchéHi Franck, can you actually prevent people from changing xml via notepad? 11-02-2005 07:30 PM In reply to franck Joined on 10-03-2005 USA Posts 310 Re: Lock an entire form Mark as Not AnswerMark as Answer... Reply Contact To my knowledge, not without signing... 11-03-2005 02:00 PM In reply to Patrick Halstead Joined on 08-07-2006 Posts 5,112 Re: Lock an entire form Mark as Not AnswerMark as Answer... Reply Contact Hi Lee,Create an additional view that is read-only and switch them to that.Patrick Halstead [InfoPath MVP]InfoPathDev Patrick HalsteadProject Manager at Qdabra Page 1 of 1 (7 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
quote:Originally posted by franckHi Lee,"Locked" such as in "Unable to change in InfoPath" (read-only), or "Locked" so that the xml cannot be change using Notepad for example?Regards,Franck Dauché