Hi everyone,
I’m trying to display dynamically editable fields in the quote editor for my users.
Goal:
- Display a select field to let the user choose a value.
- Depending on the selected value, render a different module.
- The rendering should update dynamically so the user can preview the module instantly.
I’ve followed the official HubSpot docs:
Problem:
Neither the choice field documentation nor the instructions for dynamically retrieving the value seem to work.
When the user changes the value, it has no effect — only the default value is ever loaded.
Here’s what I tried:
- Created a
choicesfield in myconvention_displaymodule. - Added it to
modern.htmlwithexport_to_template_context=True. - Inspected the
widget_data:
(SizeLimitingPyMap: {
choix_contrat=confort,
definition_id=null,
export_to_template_context=true,
field_types={choix_contrat=choice},
module_id=279203636427,
parent_widget_container=null,
path=/conventions/modules/convention_display,
smart_objects=null,
smart_type=NOT_SMART,
type=module,
wrap_field_tag=div
})
I can see choix_contrat=confort (the default value), but when I change the value in the editor, it always stays on “confort”.
Question:
Am I missing something here? Or is the documentation outdated? ![]()
Thanks in advance for any help!
