Fields in Fake Data
The Fields section in Fake Data will list all the form fields that were learned by Fake Data, or managed by you. You can think of these fields as rules for form inputs across all websites and forms that you fill.
While you cannot manually add entries in this section, there are several ways in which you can have Fake Data store a new field. These ways should hopefully be much easier than manually entering them through a huge form.
- When you indicate what generator should be used for a single input field through the context menu.
- When you indicate what generator should be used for a single input field through the popup page.
- When you Manage an input through the context menu.
You can click on each of the options above to see more details about how to do any of them.
Fields are also grouped under three main categories that we will see next.
Named Fields are rules that will match any input element in any website that has either the
id or the
name attributes identical to the name of the rule inside Fake Data.
For example, a Named Field inside Fake Data with the name "telephone" will match any input element in any website that has one of the following attributes:
Generator names from both Default and Custom generators will also act as Named Fields. Continuing from the above example, if you create a Custom Generator with the name "telephone", it will match the inputs with an identical "id" or "name" attribute.
Unnamed Fields are rules that Fake Data will use to match input elements that doesn't have an
id or a
name attribute. For such inputs Fake Data remembers them as combinations of URL and a unique CSS selector that matches the element.
Unlike Named Fields, Unnamed Fields only match elements on a single page of a website. You can however override the URL with a RegEx that can match any page of a website or any website (or similar ones).
Pro onlyOption Fields
Option Fields are very similar to Unnamed Fields, but they only match
<select> elements and inputs of
Option Fields are also identified by an URL + CSS selector combination, and you can also override the URL with a RegEx.