Setting Up Form Fields
How it Works
When setting up the form fields, please consider the following instructions:
- Please enter the unique identifier of the element you want to modify in both the
field_id
andfield_name
cells. - If you want to enable functionality in multiple forms, you can add multiple values separated by a comma.
Company Search
To add a dropdown or search functionality for the company search:
- Locate the field in the form where you want to include the company search functionality.
- Enter the field identifier in both the
field_id
andfield_name
cells. - Save the changes.
Saving company
To automatically send company details to Entercheck for verification and saving:
- Find the field in the form that collects the business ID.
- Enter the field identifier and field name to the
field_id
andfield_name
cells. - Save the changes.
You can automatically generate a hidden field where the information is stored by selecting "Add automatically"
Prefill Fields
If you want to prefill fields with the company details, you can add the field identifiers to the field_id
and field_name
cells in the menu. The available fields are:
Field | Purpose | Form field type |
---|---|---|
Company name | Generates dropdown | Input |
VAT Number | Prefill Vat number | Input |
Business Id | Prefill business ID | Input |
Business Line | Prefill business line | Input |
Country | Prefill address country | Input |
City | Prefill address city | Input |
Street | Prefill address street | Input |
Street second row | Prefill address street | Input |
Postal code | Prefill postal code | Input |
Invoice selector | Show e-invoice details dropdown | Select |
Invoice address | Prefill invoice address (typically hidden) | Input |
Invoice operator code | Prefill invoice operator code (typically hidden) | Input |
Search country | Display country dropdown | Select |
Allow search countries | Prefill for allow search countries | Input |
Internationalization
You can customize the country settings for the form fields:
- To enable multiple countries and provide end-users with a dropdown to select their country, select "Allow search countries."
- Choose the countries that should be available in the dropdown menu.
By default, only Finland is enabled.
Automatic Settings
If you want to automatically enable the functionality in the WooCommerce checkout section, select the WooCommerce defaults.
Remember to save the changes after making any updates.
Sample Form
This example form can be used as a base for your own form. Remember to add the correct field identifiers and names to the settings.
<form action="/submit" method="POST">
<label for="search_country">Country: </label>
<select id="search_country" name="search_country"></select><br><br>
<label for="companyName">Company: </label>
<input type="text" id="entercheck_company" name="entercheck_company"><br><br>
<label for="inputCompany">Company Id: </label>
<input type="text" id="business_id_demo" name="business_id_demo"><br><br>
<label for="companyBusinessLine">Business line: </label>
<input type="text" id="companyBusinessLine" name="companyBusinessLine"><br><br>
<label for="postinumero">Postal code: </label>
<input type="text" id="postinumero" name="postinumero"><br><br>
<label for="invoice_selector">E-invoice: </label>
<select id="invoice_selector" name="invoice_selector"></select><br><br>
<label for="invoice_address">invoice ovt: </label>
<input type="text" id="invoice_address" name="invoice_address"><br><br>
<label for="invoice_operator_code">invoice operator: </label>
<input type="text" id="invoice_operator_code" name="invoice_operator_code"><br><br>
<button type="submit">Submit</button>
</form>