How to find the field id?
The following method to find field id can be used for any form in WordPress.
To get id of a form field in WordPress please follow the following steps. Please note, you can get id of any field with this method.
Open the form where you would like address autocomplete functionality.
Identify the field.
Right click in the field
Click Inspect (Chrome & Edge) or Inspect Element (Firefox & Safari)
The browser will highlight a line which indicates it belongs that field.
You will see an id attribute in the highlighted line. It will look like id="form_id-123". The id can be combination of letter, numbers, dash and underscores.
Copy the value inside the quotes " ".
Go to Simple Address Autocomplete settings and paste it on new line in Field IDs.
Save Changes to save the settings.
Viola, the input has now address autocomplete functionality.
Frequently Asked Questions
Can I get field id of any field using the above method?
Yes. By right clicking on the field and select inspect, you will be able to see the id of any form field.
Last updated