I have created an HTML form, which when submitted, creates a document in the Domino database. If I set Anonymous as depositor, then the form is submitted and is accessible via the automated email link, until I use the $PublicAccess flag you suggested.
If I set Anonymous to Reader, it prompts for Username and Password when trying to submit the initial HTML document to the Domino database.
I tried the $PublicAccess route and it does exactly what I want.
The only downside, is that once the $PublicAccess is set to 0, then clicking on the link takes to you to the Domino Login prompt, which I was trying to avoid.
Subject: What if you grant Reader access to Anonymous?
You could complement the $PublicAccess route, as you put it, by granting Reader access to Anonymous. That way you’d get rid of the Login prompt, even when $PublicAccess is no longer present or has a value other than “1”.
To minimize potential vulnerabilities, protect any documents you do not want Anonymous to see by adding a Readers field that contains names of, or roles assigned to, authorized people.
EDIT: If you use a Readers field, make sure it contains also the server name(s).
You could add a field named $PublicAccess having a value of “1” to the document. It is then sufficient to grant access level ‘No access’ + optional privileges ‘Read public documents’ and ‘Write public documents’ to Anonymous.
To hide the documents from users once they have completed and submitted the form, simply remove the $PublicAccess field.
Subject: Why don’t you just call an agent that does the updating?
Pass the agent the details in the completed form. Or save the form as a new document, and in the post query save the agent code updates the document etc.