1. Home
  2. Tutorials
  3. How to locate form ID and field ID

How to locate form ID and field ID

Many code snippets will require a form ID and/or field ID. With these values, it’s possible in certain cases to apply code only to a specific form or field.

Below, we’ll show you how to find both of these ID numbers within WPForms.

Form ID
The simplest way to quickly locate a form’s ID is on the Forms Overview page. To get to this page, go to WPForms » All Forms. In the Shortcode column, you’ll see the embeddable shortcode for each form and this will include the Form ID.

For example, the screenshot below is indicating the shortcode [wpforms id="727"]. The ID for this form would be 727.

How to locate a forms ID
Field ID
To locate the ID for a specific field, you’ll need to open the form builder and click on the field in the preview area. This will open the Field Options panel for that field.

At the top of the Field Options, you’ll see the field type followed by the Field ID. In the screenshot below, the field’s ID is 11.

Locate field ID for WPForms

Updated on May 21, 2019

Was this article helpful?