Locking sections after the initial submit - InfoPath Dev
in

InfoPath Dev

Locking sections after the initial submit

Last post 10-16-2013 01:48 PM by LDavis. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-18-2008 01:29 PM

    Locking sections after the initial submit

    Is there a way to lock parts of the form after the initial submit by a user?  Basically, I would like to see if it can be done so that users who recieve the form don't change values in the form filled by the first user intentioinally or by accident.  The idea is that the users who receive it are supposed to fill in another part of the form.   

    Also, more a general question: Can you add animated objects into a 2003 Infopath form? or how about macros like you can add in Access?

  • 11-18-2008 06:48 PM In reply to

    Re: Locking sections after the initial submit

    There are a variety of ways to accomplish what you describe in your first question.  One thing you can do is the following:

    1. Create a new view that is similar to the original view, but make it read-only
    2. Change the original view's properties and uncheck "Show on the View menu when filling out the form" (you may want to do this for the new view as well)
    3. Create a boolean field "submitted" in your data source with a default of false, and set it to true when the user submits the form (but before the actual submit is performed).
    4. Then add a form rule to the form opening behavior to switch the form to the read-only view when the submitted field is equal to true

    If you only want to lock parts of the form, instead of making the new view read-only, you could just represent those parts with read-only controls (expression boxes instead of text boxes, repeating sections that the user can't modify).  Alternatively, you could create two versions of these sections in your main view, and hide one or the other depending on the value of the submitted field.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 11-19-2008 01:57 AM In reply to

    Re: Locking sections after the initial submit

    Thanks Jimmy!

  • 10-16-2013 01:48 PM In reply to

    Re: Locking sections after the initial submit

    It works when doing a preview but after I publish it doesn't work. Any suggestion of how to fix this issue or why it's happening?
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.