Disable Edit Mode

Posted on 2011-10-31
Last Modified: 2013-12-18
I have a form where there is a Submit button and a field that I use as a flag to record whether the form is already submitted or not. Right now, if the flag = "Y", the users can't submit the form again. What I would like to know is how can I stop the users to edit the form once the Submit button is clicked.

Thanks in advance
Question by:coronoahcoro
    LVL 22

    Accepted Solution

    For the Notes client, put code in the form's PostOpen and QueryModeChange events to enforce your conditions.  Here's an example...

    If (Source.Document.GetItemValue("flag")(0) = "Y") Then Source.EditMode = False

    Open in new window

    If (Source.Document.GetItemValue("flag")(0) = "Y") Then Continue = False

    Open in new window

    LVL 10

    Expert Comment

    The above method only secures the frontend method of access.

    There are several ways to limit users a lot harder, so that even if they are really crafty and somehow write an agent, they cannot modify the data.
    - use Reader and Author access limit the users capability, on submit, remove the user from the Author field, leaving only people access or a group or role in an Author field capable of modifying the form
    - use the ACL to limit their access to Depositor
    - use the button to mail the form to a database for which they only have Reader access

    See the Designer help for Using an Authors field to restrict who can edit specific documents
    LVL 17

    Expert Comment

    You can also change underlying form once original form was submitted

    when submitted you change the form where all fields are for display only
    you can store form in the document, so it would be more of a picture of a form
    LVL 10

    Expert Comment

    @coronoahcoro: status update?

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
    Article by: Rob
    Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now