Cusomizing email_subscriptions default Module

The email_subscriptions Module and website is a page where users can manage their newsletter preferences. The user gets there by opening a hubspot newsletter and pressing the “manage preferences” button and getting forwared to this subscription preferences page where the default module is. It looks like this:

And the hubl code for it is this:

{% email_subscriptions "email_subscriptions"
 header="{{ module.header }}",
 header_heading_level="{{ module.header_heading_level }}",
 email_heading_level="{{ module.email_heading_level }}",
 subheader_text="{{ module.subheader_text }}",
 unsubscribe_single_text="{{ module.unsubscribe_single_text }}",
 language_select_label_text="{{ module.language_dropdown_label }}",
 unsubscribe_all_text="{{ module.unsubscribe_all_text }}",
 unsubscribe_all_option="{{ module.unsubscribe_all_option }}",
 unsubscribe_all_unsubbed_text="{{ module.unsubscribe_all_unsubbed_text }}",
 button_text="{{ module.button_text }}",
 resubscribe_button_text="{{ module.resubscribe_button_text }}" %}

I want to add a new custom field to this email_subscriptions default module module, that updates a field in the given contact object of the user that opened the subscription preferences page. Is that possible?
If not, is there a way to atleast see what is happening behind the hubl syntax of the default module above, since i don’t really see how anything is being done in that code, like how to get the details of the user that opened the subscription preferences page, how the form data is being handled etc.
I looked at the output of the email_subscription_preferences_page template file and that atleast gives me the html output, but it still doesn’t tell me how the current user data is being accessed or where the form data is being sent.
Thanks for the help.

Hi @KiriChili,

you could create a new contact property like “Has visitied pref-center”

after that you could build a simple workflow like

done :slightly_smiling_face:

You can’t access the full code of this module since it’s a default module and responsible for “highly” legal stuff. Providing the ability to fully editing it could lead to A LOT of legal trouble.

best,

Anton