When form is submitted dont edit. - InfoPath Dev
in

InfoPath Dev

When form is submitted dont edit.

Last post 02-12-2014 11:37 PM by krishh. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 02-11-2014 11:47 PM

    When form is submitted dont edit.

    Hi guys,

    So, finally I can upload forms to Sharepoint, and fill it in. But now I have a problem.

    I have a admin account on Sharepoint, and also a viewer account.

    When i have fill the form in with the viewer account, and I press on submit I can edit it. But I dont want that, I want that only the Admin can edit the Infopath form... 

     

  • 02-12-2014 04:35 AM In reply to

    • RaYvA
    • Top 100 Contributor
    • Joined on 05-09-2013
    • Melbourne, Australia
    • Posts 86

    Re: When form is submitted dont edit.

    Do you mean you only want a specific account to be able to edit the content of a form?

     

  • 02-12-2014 04:42 AM In reply to

    Re: When form is submitted dont edit.

     Yes,

    But is it also possible to only read the fields and not edit it after submit ?

    What I want is:

     

    The form has a few questions..

    Name: User fill this in

    Last Name: User fill this in

    Problem: User fil this in.

     SUBMIT.

    Solution: Admin has to fill this in and submit the form back to Sharepoint.

    So nobody can edit the fields for the user, 

    But the solution has only have to fill in by the admin.

  • 02-12-2014 05:58 AM In reply to

    • RaYvA
    • Top 100 Contributor
    • Joined on 05-09-2013
    • Melbourne, Australia
    • Posts 86

    Cool, there are a few ways you can achieve this.

    Quick question, are there more than 1 admin account?

    If there is 1 admin account, then you can use rules on the fields/sections that you don't want to be seen/edited after the form is submitted, and more rules on the fields that only can only be edited prior to the form being submitted!

    I've attached a quick form that demonstrates some of the concepts.

    Firstly the Problem section has a ProblemUser field that gets the current users user ID using the user() function, this only updates when the form is created. This field is read only.

    Secondly, the Solution section has a SolutionUser field that updates every time the form is opened. This field is read only.

    Thirdly, the Solution section is set to hidden if the SolutionUser is not RaYvA.

    What this does is allows anyone to open the form and fill in the Problem section, but only RaYvA can see the Solution section.

    There is an additional rule on the ProblemInfo fields that disable them if the FormName field is populated (which should be populated when the form is submitted).

    As I said there are a number ow ways to achieve this, this is one quick and dirty example :)

    Hope this helps?

    Cheers

  • 02-12-2014 11:37 PM In reply to

    Re: When form is submitted dont edit.

     Thanks! First option works great, I have add rules to my form, so people can see the form but cant´t edit anymore:) Super!! Thanks RayvA!

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.