Hey @DM2
So there is no “quick” way to do this but there are options!
First if you’re looking for a global implemetation of custom property selections from a module that can be used throughout a page or theme, you can use my favorite HS property “export_to_template_context”.
This property is added to module expression when coding it into a template:
{% module "job_title" path="@hubspot/text", label="Enter a Job Title", value="Chief Morale Officer", export_to_template_context=True %}
You can then use the properties exported from the module by name like:
{{ widget_data.job_title.body.value }}
Second (as @SteveHTM has mentioned) you could use the “copy JSON” option from the module and paste it into another when developing locally:
When in the design manager, click Actions > Copy JSON. This code can now be pasted into a module’s fields.json config file using a coded editor like VSCode. This JSON is also availble from the original module’s fields.json files as well.
[
{
"default": {
"form_id": "7b4fc5b2-1d4a-4a0a-8319-xxxxxxxxxxxxx",
"response_type": "inline",
"message": "Thanks for submitting the form.",
"gotowebinar_webinar_key": null,
"form_type": "HUBSPOT"
},
"display_width": null,
"id": "form",
"label": "Form",
"locked": false,
"name": "form",
"required": false,
"type": "form"
}
]
Third you can always clone the module!
In the deisgn manager, right click the module and select “Clone module”
There is so much that one can do with just these 2 implementation!
If you have any question I can help answer please don’t hesitate to reach out!
Best