How to share a form with information that already exists in a document?

Tabla de contenidos

In Athento you can share with external users a public form with pre-existing information, unique for each published document. This is useful, for example, when you need an external user to review or update information that you already have recorded.

To do so, use the operation “Create a public link for a document protected by an OTP”, which allows you to share the form through a secure link protected with an OTP (one-time code), in read or edit mode.

This operation allows you to generate two types of links:

  • Read: all fields are set to read-only mode. To generate a link of this type, set the link_type parameter to read.
  • Edit: allows you to edit form fields. To generate a link of this type, set the link_type parameter to edit.

For a field to be displayed in the public form, it must have the Show in public forms / Mostrar en formulario público option enabled.

For a field to be editable from a public form, it must have the Editable in public form / Editable en formulario público option enabled.

Operation parameters

  • expiration_days: number of days the generated link will be active. How to make a public link to a document expire?
  • phone_number_metadata: field from which the phone number will be taken to send the OTP.
  • notification_template_name: email template in which the public link will be sent. This template can be customized; you only need to include {% load filetags %} at the beginning of the body and the tag {{ url }}, which renders the URL of the generated link. The URL domain is taken from the team.
  • email_metadata: field from which the email address to which the notification with the link will be sent will be taken.
  • link_type: read or edit, depending on the type of link.
  • lock_after_submit (Lock the edit link after submit): indicates whether the edit link is locked when the external user submits the form. See the next section.

Lock the edit link after submission

With the lock_after_submit parameter you decide what happens to an edit link when the external user submits the form:

  • Enabled (default value): the link is locked after submission and can no longer be used again to edit.
  • Disabled: the link remains accessible until it expires, even if the form has been submitted one or more times. It is useful when the external user needs to correct or complete the information again.

The option is saved on each document at the time the link is generated, so changing it in the operation only affects links that are generated afterwards. Documents that were already locked are not unlocked.

 

Related articles

Upload documents or fill in forms by unregistered users

Is it possible to customize a public form with my company branding?

Make a field appear in the public link for document creation

How to make a public link to a document expire?

How to publish a document for an external user securely?

Is it possible to customize the OTP request screen of the public link?