Workflows

Fill PDF fields within a Workflow

You can use Anvil Workflows to collect data, gather signatures, and fill documents. In this article, we’ll specifically walk you through how to fill your document fields with Webform fields and literal values.

If you need to fill and sign a document only once and you don’t need logic, we recommend using Etch e-signature packets instead.

Back to Help Center

Getting started

When building your Workflow, you can configure your document fields to be filled with either dynamic or static values. Dynamic values can either be drawn from Webform fields, JavaScript expressions, or signer information. Literal values are constant and will be filled across all your submissions.

A menu that incldes all the different ways to fill a PDF field within a Workflow Anvil Workflows support several PDF fill options.

  • From a connected Webform field: Fill PDF fields with information that has been entered into a Webform field.
  • With a literal value: Fill a field with a static string. We recommend this option if a field will always be filled with the same information.
  • From a formula:* Unlock more granularity by choosing to fill a PDF field with a formula or JavaScript expression. This option is commonly used to execute calculations with information entered in Webform fields.
  • With a signer’s information: Automatically fill Name and Email type fields with a signer’s information.
  • Do not fill this field: If you want to reset a fields' fill settings, selecting this option allows you to easily disconnect your PDF field. It preserves the PDF field, allowing you to reconnect it at any time.

* Please note that formulas and expressions are a custom plan feature.

Fill PDF fields with Webform fields

You can fill your documents with information collected through your Webforms by mapping your Webform fields to your PDF fields. A single Webform field can be mapped across multiple PDF fields, so you only need to collect any given piece of information from your users once.

You can either map existing Webform fields to your PDF fields though the PDF editor or create a new Webform field from an existing PDF field.

To connect existing Webform and PDF fields:

  1. Navigate to your Workflow editor
  2. Click on the PDF tab in the top nav bar
  3. Locate and select the relevant PDF field
  4. Under the How would you like to fill this PDF field?, select From a connected webform field
  5. Click Choose a webform field to connect
  6. Search fo and select the relevant Webform field

Note: Some field types like Name and Radio Group will include additional output optional values.

To connect existing PDF fields to new Webform fields:

  1. Navigate to your Workflow editor
  2. Click on the PDF tab in the top nav bar
  3. Locate and select the relevant PDF field
  4. Under the How would you like to fill this PDF field?, select From a connected webform field
  5. Click Choose a webform field to connect
  6. Select add a new connected Webform field
  7. Configure the field’s settings
  8. Add field

Notes:

  • Newly added fields will have the same field name and type as the corresponding PDF field.
  • Fields will automatically be added to the bottom of your specified Webform page. Read this article to learn how to reorder Webform fields.
  • See this article to connect a PDF field to a new Webform field from the Webform editor instead.

Fill PDF fields with literal values

If the information that goes in a PDF field will be the same for each submission, you don't need to collect that information via the Webform. Instead, you can fill that PDF field with a literal value.

To fill a PDF field with literal values

  1. Navigate to your Workflow editor
  2. Click on the PDF tab in the top nav bar
  3. Locate and select the relevant PDF field
  4. Under the How would you like to fill this PDF field?, select With a literal value
  5. Enter desired Value
Back to Help Center

Other common posts

1 - 0 of 0

Contact support

We know dealing with tech support can be painful. It's our goal to help you as quickly and efficiently as possible. Once we get your message, we will email you back as soon as we can.
    Want to try Anvil first?