Loading...
Asked by Yawer Ali on Jun 24, 2024
Yawer is working in the Design Manager and wants to dynamically change the HubDB data displayed based on a selection made by the *editor* in a module choice field (added via the sidebar). Needs to access the selected value of this choice field within the HubL code.
Answered by Yawer Ali
Yawer discovered the solution: the selected value of a module field can be accessed directly in HubL using `module.field_name`. For example, `{% set selectedMake = module.choice_field %}` or simply using `module.choice_field` directly in the logic.