Lookups allow you to create and store a table of contents within CivicOptimize that can be used to look up and populate data across multiple forms. This new feature requires no custom coding or use of APIs.
You can also still create Dynamic Lookups to query content external to the CivicOptimize platform using APIs.
Populate Number or Text Elements
When populating elements with content in a Lookup you can choose between two types of content, text and numeric elements. Selecting Text will allow you to populate Text, Multi-line Text, Email, Phone Number, Barcode Scanner, Radio Button, Select, and Autocomplete elements. Selecting Numeric will allow you to populate Number elements. This configuration can be found on the right of your column name.
Populating Number elements provides the ability to do calculations, payments, and more advanced conditional logic.
Lookup Limitations
- Supported Element Types: Lookups currently only support text-based and number-based values and content. Meaning elements that are able to be looked up and populated with data include: Text, Multi-line Text, Email, Phone Number, Barcode Scanner, Radio Button, Select, Autocomplete, and Number.
- Offline: At the moment Lookups are not supported when the user of the form is offline, the lookup requires the user to be connected to a network.
Article Navigation
Not finding what you are looking for? View additional resources
Instructions
- Navigate to Advanced Tools and select Lookups
- Click the + button in the lower right corner
- Add a Lookup Label and click Save
- Click Edit to start building your lookup
- Select the Environment(s) you wish to add the lookup to
- Add content by following the instructions to Upload a CSV, Import Form Elements, Import List Rows, or Manually Add Rows and Elements
Note: In the Lookup table, the row is the value that the user will be looking up in the form and the column will be the element that will be pre-filled with content.
Upload From CSV
- Select Upload from CSV to use a file with pre-built rows and columns
Note: Uploading a CSV will replace any rows or elements that you have already created for the lookup. View a Lookup CSV Example.
Import Columns from Form Elements
You can use an existing form to populate the columns/elements of the lookup.
- Select Import and choose Import form elements
- Select a Form from the drop-down
- Check the boxes next to the elements you wish to add to your Lookup
- Select Import
- The elements will now show as columns on your lookup
- You can manually add row values or import rows from lists
Import Rows from Lists
- Select Import and choose Import rows from list
- Select a List from the drop-down
Note: Learn how to create a list. - Check the boxes next to the items you wish to include
- Click Import
- The list items will now show as rows on your lookup
- Fill out the element information for each value/row
Note: If your element data is numeric you can click the Set values to be numeric values (123) icon in the top right corner of the column.
- Click Save
- You can now add your lookup to a form
Manually Add Rows & Elements
In the Lookup table, the row is the value that the user will be looking up in the form and the column will be the element that will be pre-filled with content.
- Click Add Row to start building the table.
- Enter a Value (name) for the row and click Save
Note: Adding a row to the table will allow you to populate corresponding form elements when the value of the row is entered or selected on the Lookup form element.- Use clear value: Toggle on if you wish to add a clear value row to populate form elements when a Lookup element is cleared. Only one clear value row per lookup is allowed. The form element option 'run lookup on clear' must be configured.
- Click the Element column to update the name
- Add an Element name and click Save
- If needed, click Add Element to add additional columns
Note: Adding an element to the table will allow that element to be populated with content whenever a user enters or selects the corresponding value on the Lookup form element. - Fill out the element information for the value
- Add additional rows, as needed
Note: By default, the columns will be set to text values. Click the 123 icon in the top right corner to change to numeric values.
- You can click Copy to Environment to allow the lookup to be used on forms in other environments
- Once you are finished building your lookup, click Save
- You can now add your lookup to a form
Export & Edit Lookup Data in a CSV
You can export a lookup as a CSV, make modifications in Excel or Google Sheets, and then import the changes into the Lookup table.
-
Navigate to Advanced Tools and select Lookups
- Click Edit next to your lookup
- Select Download CSV to export the existing lookup data
- Edit the CSV as needed by adding additional columns or rows
- Replace the existing lookup data by uploading your updated CSV
Comments
Let us know what was helpful or not helpful about the article.0 comments
Please sign in to leave a comment.