<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: custom preference center with different categories in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/433783#M22845</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/91608"&gt;@alyssamwilie&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you for the input/idea. Will discuss it with the team and definitely test the "custom form" idea. If this works I'll come back&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;have a great day&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 07:14:14 GMT</pubDate>
    <dc:creator>Anton</dc:creator>
    <dc:date>2021-05-04T07:14:14Z</dc:date>
    <item>
      <title>custom preference center with different categories</title>
      <link>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/433450#M22828</link>
      <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to develop a completly customized preference center for a client.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The client wants something like - let's call it - accordions in the preference center depending on subscription types.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;For example&lt;BR /&gt;There are a few categories like "marketing", "opperational", "sales"...&lt;/P&gt;
&lt;P&gt;Each of this category should contain it's own subscription type and if the visitor checks for example "marketing" he'll see and be able to subscribe to all subscriptiontypes which belongs to "marketing". Otherwise all subscriptions of this category are unchecked.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I mean I could think of something really overengineered with APIs, JavaScript,&amp;nbsp; whatever but there should be something much simpler, right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 07:03:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/433450#M22828</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2021-05-03T07:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: custom preference center with different categories</title>
      <link>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/433653#M22838</link>
      <description>&lt;P&gt;Is there anything simpler &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt; , &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt; , &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/91608"&gt;@alyssamwilie&lt;/a&gt; , &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72866"&gt;@Jake_Lett&lt;/a&gt; , &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/158"&gt;@jpsanchez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You know this guy &lt;span class="lia-unicode-emoji" title=":grinning_cat_face:"&gt;😺&lt;/span&gt;.&amp;nbsp; do you have some thoughts for him &lt;span class="lia-unicode-emoji" title=":eyes:"&gt;👀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 19:08:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/433653#M22838</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-05-03T19:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: custom preference center with different categories</title>
      <link>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/433660#M22839</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;Last I checked Hubspot doesn't let you add email preference properties to forms nor can you look them up with HubL variables (sure wish they diiid though) so without getting into the API you'd have to create psuedo properties and use those to check and update the preferences through a workflow.&lt;BR /&gt;&lt;BR /&gt;Our setup for custom prefence pages usually follows along the lines of -- create a custom form in page &amp;gt; use javascript to submit the selections to a Hubspot form (if it's a pretty simple form we skip the javascript and just use a Hubspot form on the page) &amp;gt; use a workflow to change the user's preferences based on the form submission. &lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 19:30:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/433660#M22839</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2021-05-03T19:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: custom preference center with different categories</title>
      <link>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/433783#M22845</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/91608"&gt;@alyssamwilie&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you for the input/idea. Will discuss it with the team and definitely test the "custom form" idea. If this works I'll come back&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;have a great day&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 07:14:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/433783#M22845</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2021-05-04T07:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: custom preference center with different categories</title>
      <link>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/433864#M22849</link>
      <description>&lt;P&gt;Ok, a will try a KISS aprouch,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.- Use two properties. Type_of_subscription and Subtype_of_subscription.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.- Use normal forms.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.- Conditional form response. &amp;nbsp;( if answer this them show this)&lt;/P&gt;
&lt;P&gt;4.- Update real subscriptions with a WF.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OPTION 2.-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.- Upload all the types and subtypes of subscriptions in hubspot SETUP. ( as normal use)&lt;/P&gt;
&lt;P&gt;2.- Use this construction : &amp;nbsp;Type1 / Subtype 1 , Type1 / Subtype2 , Type2 / Subtype2 ...etc..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.- Use CSS to Force it. ( with "/" operator or other ./n etc..)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;JP&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 10:45:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/433864#M22849</guid>
      <dc:creator>jpsanchez</dc:creator>
      <dc:date>2021-05-04T10:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: custom preference center with different categories</title>
      <link>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/434741#M22898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The functionality you are looking for is not available in the current version. You have to use a boiler plate theme set up. Check the screenshot below. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="c-link" href="https://prnt.sc/12f2bth" target="_blank" rel="noopener noreferrer" data-stringify-link="https://prnt.sc/12f2bth" data-sk="tooltip_parent" aria-describedby="sk-tooltip-1768"&gt;https://prnt.sc/12f2bth&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;If we were able to answer your query, kindly help the community by marking it as a solution.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 08:33:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/434741#M22898</guid>
      <dc:creator>webdew</dc:creator>
      <dc:date>2021-05-06T08:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: custom preference center with different categories</title>
      <link>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/434791#M22904</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;,&amp;nbsp;you mean an email preference center? I customised the default email_subscriptions module with JS, it was just to order each subscription type under the category. &lt;A href="https://www.mews.com/hs/manage-preferences/unsubscribe?d=Vnchcr8kmYBMVFq3-k49RkB9W2m40Kf3T0pbmW43T2Qq8D6dl6W17f7hv6lGYkqW8fvV-r5l4crqW5SyT5M85rz1DV28W_f5mP42YMGKd_P20N4-W11LYp61FGdqTW3nLfSm7-J2Sh51cyJg1&amp;amp;v=3&amp;amp;utm_source=hs_email&amp;amp;utm_medium=email&amp;amp;utm_content=95452966&amp;amp;_hsenc=p2ANqtz-9rBVBunf7hDObCrRhTelGtVH2y6mmxhoZksUlcVsLyZ0N75O-8HQ6etbQ6GxGEyzMNGpR-RLmb79pqj0yte6NKg7Zbeg&amp;amp;_hsmi=95452966" target="_blank" rel="noopener"&gt;Example&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's my JS to re-order/categorise everything. You could take this and make each category an accordion:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;window.onload = (event) =&amp;gt; {
        var ref = document.querySelector('.email-prefs#content .header');
        if (ref != null) {
          var child = document.createElement("div");
          child.innerHTML = '&amp;lt;div id="marketing"&amp;gt;&amp;lt;h4&amp;gt;Marketing&amp;lt;/h4&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div id="service"&amp;gt;&amp;lt;h4&amp;gt;Service&amp;lt;/h4&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div id="event"&amp;gt;&amp;lt;h4&amp;gt;Events&amp;lt;/h4&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div id="sales"&amp;gt;&amp;lt;h4&amp;gt;Sales&amp;lt;/h4&amp;gt;&amp;lt;/div&amp;gt;';

          ref.parentNode.insertBefore(child, ref.nextSibling);
          var items = document.getElementsByClassName('item');
          for (i = 0; len = items.length, i &amp;lt; len; i++){
            let item = items[i];
            let type = item.querySelector('.fakelabel').children[1].textContent.toLowerCase();
            var wrap = document.querySelector('#'+type);
            wrap.appendChild(item);
            let textWrap = item.querySelector('p');
            let text = document.createTextNode(textWrap.textContent);    
            let newText = document.createElement("span");
            newText.appendChild(text);
            let pos = item.querySelector('.fakelabel');
            pos.appendChild(newText);
            textWrap.remove();
            let bold = item.querySelector('.fakelabel span:nth-last-child(2)');
            bold.textContent += ":";
          }
        }
        var button = document.getElementById('submitbutton');
        button.classList.add('button');
        button.classList.add('button--primary');
      };&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="piersg_0-1620295468331.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/42148iDB24A403C0998640/image-size/medium?v=v2&amp;amp;px=400" role="button" title="piersg_0-1620295468331.png" alt="piersg_0-1620295468331.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 10:10:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/434791#M22904</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2021-05-06T10:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: custom preference center with different categories</title>
      <link>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/438139#M23124</link>
      <description>&lt;P&gt;Quick update: The customer decided to drop this feature and go with the default pref center...&amp;nbsp;&lt;BR /&gt;Nevertheless thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/91608"&gt;@alyssamwilie&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/158"&gt;@jpsanchez&lt;/a&gt; and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt;&amp;nbsp;for the ideas &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 12:59:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/custom-preference-center-with-different-categories/m-p/438139#M23124</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2021-05-17T12:59:28Z</dc:date>
    </item>
  </channel>
</rss>

