It would be useful if it were possible to set up a subscription preference type which is private or could be hidden from everyone.
For example this could be used for an internal employee newsletter who would have a subscription category that cannot be signed up for by external people. Or, if you have a specific group of customers who you want to sign up to a certain type of emails and therefore limit who would be able to access that subscription.
In case it's helpful for others, the script below works (for me anyway) when added to the subscription preference page. You need to replace id_XXXXX with the actual ID, which you can get by inspecting the source code of the preference centre page.
We decided not to use this in the end since there's only one preference centre page and so we wouldn't be able to unhide the subscriptions from the people who it should be visible for.
<script> document.addEventListener('DOMContentLoaded', function() { var checkbox = document.getElementById('id_XXXXXX'); if (checkbox) { var parentRow = checkbox.closest('.checkbox-row'); if (parentRow) { parentRow.style.display = 'none';var nextParagraph = parentRow.nextElementSibling; if (nextParagraph && nextParagraph.tagName === 'P') { nextParagraph.style.display = 'none'; } } } }); </script>
At this time, you set up dynamic preference pages using 'rules'. This feature is currently available for Marketing Hub Enterprise users only. Thank you