# App - field mapping

This guide is for users who don't want to, or can't, use our interactive web configurator to map fields. It's an alternative approach directly in the Foxentry administration, which we recommend mainly to more advanced users with a basic knowledge of HTML and CSS selectors.

Prerequisite for correct operation

Just like with the web configurator, the autocomplete and validation on your website will only work once you have the Foxentry script embedded in your page code.

Creating a form and manual mode

The field-mapping process starts in your Foxentry administration, in the detail of a specific project.

  In the left-hand menu, go to the Forms section.

  Click the Add form button.

  Select the Create form manually option (or Set up manually).

  
    
  

Basic form settings

First, you need to name the form and set which pages it should work on.

  Enter a form name for your own internal records (e.g. Cart).

  Set any form restriction, if needed. Using simple conditions, you can specify that the form should only work on URLs containing a certain word, or conversely disable it on certain pages (e.g. in your website's own admin).

  When setting a restriction, it's important to always confirm the condition (e.g. url contains) by clicking the round orange + button. Without this step, the condition won't be saved.

  
    
  

Recommended settings (best practices)

Foxentry can offer you an automatic pre-set configuration in the administration, based on our tested recommendations ("best practices") for a specific country. The system itself then recommends the optimal evaluation level for e-mails, addresses, or phone numbers, exactly according to the specifics of that particular market (e.g. because of the lack of a name database in certain countries).

  
    
  

Data groups and adding fields

In Foxentry, we work with so-called groups (formerly called validators). Think of a group as a block of fields that belong together - for example, with an address, that's the street, city, and postal code. If you select a street from the autocomplete, every field in that group gets filled in at once. You'll often need several of these groups (e.g. a separate billing address and delivery address, so they don't overwrite each other).

  In the form detail, click the Add field button.

  In the right-hand slide-out panel, choose the type of data (you can switch between the Fields, Checkboxes, and Selects tabs).

  
    
  

Once you select a specific piece of data, a new logical group is created right away. In its detail, you can then simply edit the group name (e.g. to "Address - delivery") to make the settings easier to navigate, and add further fields to it.

  
    
  

Entering identifiers (selectors)

Now you need to match the fields you've created to your website. Enter a unique identifier for the specific field into the empty box. Every website is a little different, so the easiest way to find the correct selector is directly on your pages, using your browser's developer tools. Just right-click the relevant field and select Inspect (or use the shortcut Ctrl+Shift+C).

  
    
  

  
    
  

You may come across various types of notation in the HTML code. Here are the most common ways to enter them into Foxentry:

  #email - this is how you mark an element whose code has the attribute id="email". This is the most reliable and safest option.

  .email - this is how you enter an element marked with the attribute class="email".

  [name=email] - marks an element that contains a name attribute with a specific value, i.e. name="email".

Group behavior and saving

Directly below the selector field, you can use checkboxes to adjust the behavior of the given field (e.g. whether it should be validated, offer autocomplete, or only be used to automatically fill in data). If you switch to the Group behavior tab at the top of the right-hand panel, you'll find further useful options for fine-tuning the functionality:

  Evaluation level: determines how strictly the entered data is checked (minimal, medium, strict). The stricter the setting, the more weight is placed on the data being entered completely free of errors and typos. This also affects how the warning is displayed (its color, icon, and text).

  Visual evaluation: determines whether visual states and error messages are shown to users at all. You can enable all states, limit it to valid/invalid data only, or turn the visualization off entirely.

  Correction mode: determines how error corrections within the group are handled. You can let the system automatically correct typos, correct only the format, or leave the data unchanged and simply offer the user a better-matching alternative. You can also turn corrections and suggestions off entirely.

  Different behavior across countries (optional): a special setting for cases where you have multiple countries enabled for the service and a user enters information that matches a result in a different country from the one they're currently in. Here you can define exactly how the field group should behave in such a case.

Don't forget to confirm all settings by clicking the Save button. All successfully mapped groups and fields will then be neatly listed in the form's main overview in the administration, where you can edit them at any time or add further elements to them.
