Built-In Functions

There are some pre-made existing functions to aid in getting common collections in Snap.

Get All Fields

Function will return an array of all the input fields in the configurator.

Example use:

In this Loaded rule, if the person launching the configurator is a Company Administrator, any field that has the string "(hidden)" as part of its label is made visible.  This can be a technique for showing hidden fields in the UI to administrators, to help with your design or troubleshooting work.  First, hide or show fields for most users by setting the visibility of the field directly in the definition of the field.  Then, use a function like this one to make certain fields always visible to administrators.

Get Nested Configurators

This function returns an array of all nested configurators in the configurator.


Was this article helpful?