Lookup Widget Types
Data Table
Simple dropdown list options for calculations created directly in the builder
Shared Table
Access data from uploaded Excel files with full table functionality
Toggle
Logical true/false toggle with “Yes” or “No” options
When to Use Each Type
Data Table
Use a Data Table when you need:- Simple dropdown list options for calculations
- Data that can be easily defined within the calculator builder
- Custom selection lists without external file dependencies
Shared Table
Use a Shared Table when you need:- Access to complex Excel data files
- Large datasets that are maintained externally
- Standardized tables shared across multiple templates
- Advanced filtering and data organization
Toggle
Use a Toggle when you need:- Binary choice options (Yes/No, True/False, On/Off)
- Simple boolean logic in calculations
- Clean, intuitive user interface for binary decisions
Common Properties
All lookup widgets share these core properties:Always set to “lookup” for all lookup widget variants
The name of widget, shows up as the section title
Symbol for the widget (supports KaTeX formatting)
Default index for the lookup. Must resolve to an integer, and may be a user formula.
An equation that must result in true/false and can hide the widget if certain conditions are met. Note that if visibleIf==false, then any other fields which try to reference this field will error.
Whether or not to export the value of the widget for use elsewhere in the platform, such as in load linking
Whether or not hide the widget entirely from users’ view. Value can still be set in presets and read by other widgets.
Unique reference ID of the widget
Description of section (not currently displayed, but will be)
Relevant code or standard reference for the section
Make notes relevant to internal development here; this will never be displayed publicly
Any image specifically relevant to the widget (image dataURI)
Implementation Guidelines
- Choose the Right Type: Select the appropriate lookup variant based on your data source and complexity requirements
- Data Organization: Consider how your data will be maintained and updated when choosing between local data tables and shared Excel files
- User Experience: Think about the user interface implications - toggles for binary choices, dropdowns for multiple options
- Performance: Shared tables may have slightly longer load times but offer more functionality