Dynamic Forms: Pre-fill values

Fields in a Podio webform are empty by default when the page is visited. In this section you'll learn how you can pre-fill fields in your webform by adapting the URL of your webform.

Text and number fields

To pre-fill the values for text and number fields, use the following url:

  • One value: forms.momentumtools.io/?form=form_id&external_id=value
  • Multiple values: forms.momentumtools.io/?form=form_id&external_id1=value1&external_id2=value2

To get the form_id click on Share in the menu bar. The form_id is the 12-character string at the end of the shareable link.

Momentum

To get the external_id of the field, go the Podio app and open the developer page.

Momentum

Scroll down to find the external_id of the related Podio field.

Momentum

Category fields

For category fields you need to use a different syntax to pre-fill the values. In this case you need to specify which label id (1, 2, ...) you would like to check. Use the following syntax:

  • Category Single forms.momentumtools.io/?form=form_id&external_id=1
  • Category Multiple forms.momentumtools.io/?form=form_id&external_id[1]=true&external_id[2]=true

Examples

Relationships fields

For relationship fields you need to use a different syntax to pre-fill the values. In this case you need to specify which label id (1, 2, ...) you would like to check. Use the following syntax:

  • Relationship Single forms.momentumtools.io/?form=form_id&external_id=item_id_item_label
  • Relationship Multipleforms.momentumtools.io/?form=form_id&external_id=item_id1_item_label1||item_id2_item_label2

Examples

Embedded forms

To pre-fill values for embedded forms, you can add a value to the attribute data-prefill in the embedded code.

<div id="momentumtools-form" data-prefill='{"external_id": "value"}'></div>