This code snippet adds the ability to show page elements only to the primary person connected to the account. It works in a similar way to how the Outseta nocode module already lets you hide and show page elements based on the plan and more.
Copy and paste the code between <!-- ✨ Custom Snippet Start ✨ -->
and <!-- ✨ Custom Snippet End ✨ -->
from the demo below.
Then add the data-primary="true"
attribute to the elements you'd like to show only to the primary person.
<divdata-primary="true"
>
Only visbible to the primary person of an account.
</div>
You may also go for the opposite and show page elements only to the non-primary people connected to the account using data-primary="false"
<divdata-primary="false"
>
Only visbible to the non-primary people of an account.
</div>