Skip to main content
sachin16
Active Contributor IV
Active Contributor IV
October 8, 2022
Solved

Can you setup a show/hide block based on subscription?

  • October 8, 2022
  • 2 replies
  • 149 views

Hello,

Any idea which type of code will be use for show hide block for example:

Show hide block - showing the block only if they have the product in there subscription.

This type of show hide block which code will be use for this.

Thank you.

    This topic has been closed for replies.
    Best answer by Taylor Tarpley

    Hi there @sachin16

     

    Good to see you again, happy to help! 

     

    Essentially the code you will be working with will be based on whether you’re using profile properties to determine whether a block shows or hides or event data. For instance, is this subscription product for the customer in recent event data or a property added to their profile? This would impact whether you use a  person|lookup or event|lookup code. Our documentation on show hide blocks will help walk you through which code to use depending on what type of data you want to use for this feature.  

     

    Additionally, checking out these helpful threads explaining show/hide in more detail might help gain more insight! 

     

    Hope this helps!

    -Taylor 

    2 replies

    Taylor Tarpley
    Community Manager
    Community Manager
    October 11, 2022

    Hi there @sachin16

     

    Good to see you again, happy to help! 

     

    Essentially the code you will be working with will be based on whether you’re using profile properties to determine whether a block shows or hides or event data. For instance, is this subscription product for the customer in recent event data or a property added to their profile? This would impact whether you use a  person|lookup or event|lookup code. Our documentation on show hide blocks will help walk you through which code to use depending on what type of data you want to use for this feature.  

     

    Additionally, checking out these helpful threads explaining show/hide in more detail might help gain more insight! 

     

    Hope this helps!

    -Taylor 

    sachin16
    Active Contributor IV
    sachin16Author
    Active Contributor IV
    October 11, 2022

    Thank you Taylor for giving me answer.