Complex Logic for Custom Module Fields Visibility

At the moment the visibility of a field can only be controlled depending on another field property. For an optimal user experience it would often be useful to control the visibility of a field based on several conditions that can be logically linked with “AND”, “OR” “NOT_AND” and “NOT_OR”.

Additionally, nesting this logic would certainly be helpful in some cases. The principle can be found among other things in the filtering of smart lists.

Example:

"visibility": [
 "logic": "AND",
 "conditions": [
 [
 "controlling_field": "cards.type",
 "controlling_value_regex": "product",
 "operator": "EQUAL"
 ],
 [
 "controlling_field": "cards.darkmode",
 "controlling_value_regex": "true",
 "operator": "EQUAL"
 ]
 ]
]

SOLVED

See

advanced_visibility​

under Module and Theme Fields Overview - HubSpot docs