- Create an element of type Static Text and name it Serves.
- Click the Static Text tab.
- In the Search text field, type the text to search for: Serves.
- Set Max error percentage to 20.
- Click the Advanced tab.
-
In the Advanced pre-search relations field, specify an additional search constraint: Look for the object closest to the cooking time. In the FlexiLayout language this must be written as follows:
Nearest: SearchElements.Cooking.CookingTimeHeader;
Sample 2
Sample 2. Step 21: Creating a Serves element
Pinpoint the word Serves with a Static Text element, applying a Nearest pre-search relation to the CookingTimeHeader element to avoid false matches.
To create the Serves element:
Sample 2. Step 20: Describing the Cooking field
Previous
Sample 2. Step 22: Creating a Portions element
Next
