1. Home
  2. Show or Hide a Team Interaction with Conditionals in AccessAlly

Show or Hide a Team Interaction with Conditionals in AccessAlly

Skill Level: Advanced

Scenario: You’ve got a robust set of team interactions that need to be displayed to the team leader on the team administration dashboard. To prevent overwhelm you would like to show and/or hide these options based on tags.

Review Existing Team Setup

Review your existing team setup to determine if you are using the All Team Interactions option.

Go to AccessAlly > Teams > Programs > Select the Program > Display > Display Elements section.

All Team Member Interactions

Part 1: If you see All Team Member Interactions in this space you will rebuild each interaction using the AccessAlly shortcode generator.

  1. Select Team Interaction
  2. Select the team
  3. Choose the interaction

Team Interaction Step 1

Now you will paste the code for that team interaction into a new Custom Code (Developer Only) block.

Custom Code Developer Option 2

Repeat Part 1 and Part 2 for every team interaction you have for this team. If you have two team interactions you should have two custom code (developer only) spots.

Repeat Interactions

Build Your Conditions

Show a team interaction based on a member having a tag.

Now it’s time to use the AccessAlly Shortcode Generator to build the conditions for showing or hiding the team interaction button. You could choose to:

Show a team interaction if the team member has a tag:

Has Tag Show Team Interaction

Example of how to wrap the conditional around your initial team interaction shortcode:

[accessally_has_any_tag tag_id='3962' comment='Fabulous Challenge Instant Access'][/accessally_has_any_tag]

The result would be the Team Interaction button would be displayed to the team leader if a team member has the Fabulous Challenge Instant Access tag.

Additional options you can create using the method above.

Additional Options

Delete All Team Interactions

To prevent all team interactions from showing (along with your new conditional ones) it’s time to delete the All Team Interactions block if you are using this currently.

Go to AccessAlly > Teams > Programs > Select the Program > Display > Display Elements section.

Delete the existing All Team Member Interactions block (if used in your display) – this is a single block in the Display tab.

Delete All Team Interactions

Test Your Setup

Don’t forget to test your setup to ensure that users that the team leader can see team interactions that meet your new conditions.

AccessAlly Testing Guide: https://kb.accessally.com/tutorials/testing-guide/

Updated on November 16, 2023
Was this article helpful?

NO QUESTION GOES UNANSWERED

If you have any questions, we're just an email away.

We take your success seriously, and you'll always get a speedy reply from a real person during business hours.

Laptop with the AccessAlly demo site

AccessAlly is the most flexible way to sell and elegantly deliver digital offerings. All in one place.

WATCH THE DEMO

You'll get follow-up emails about AccessAlly and new features. Opt out anytime. Full privacy policy here.