Skip to main content

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 and field_name cells.
  • If you want to enable functionality in multiple forms, you can add multiple values separated by a comma.

To add a dropdown or search functionality for the company search:

  1. Locate the field in the form where you want to include the company search functionality.
  2. Enter the field identifier in both the field_id and field_name cells.
  3. Save the changes.

Saving company

To automatically send company details to Entercheck for verification and saving:

  1. Find the field in the form that collects the business ID.
  2. Enter the field identifier and field name to the field_id and field_name cells.
  3. Save the changes.
Enable saving without modifying a form

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:

FieldPurposeForm field type
Company nameGenerates dropdownInput
VAT NumberPrefill Vat numberInput
Business IdPrefill business IDInput
Business LinePrefill business lineInput
CountryPrefill address countryInput
CityPrefill address cityInput
StreetPrefill address streetInput
Street second rowPrefill address streetInput
Postal codePrefill postal codeInput
Invoice selectorShow e-invoice details dropdownSelect
Invoice addressPrefill invoice address (typically hidden)Input
Invoice operator codePrefill invoice operator code (typically hidden)Input
Search countryDisplay country dropdownSelect
Allow search countriesPrefill for allow search countriesInput

Internationalization

You can customize the country settings for the form fields:

  1. To enable multiple countries and provide end-users with a dropdown to select their country, select "Allow search countries."
  2. Choose the countries that should be available in the dropdown menu.
Default settings

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>