0

How do you create a trigger on one page to show an icon on another page?

2177 0 4
Posted   3 years ago

How do you trigger a show action for an icon that is on one page, but the trigger action is the completion of another page? 

I selected the page > clicked Trigger > When this page is completed > Show Action > then the only items I can select are on the same page that I am using as a trigger. I can't figure out where to select an image on another page to show on completion. The search only returns items on the same page, too.

Do I have to create a custom variable or am I missing something simple? Thanks

 

Comments

( 0 )

Answers  ( 4 )

0
avatar Paul Schneider   |    
Posted   3 years ago

You are on the right path.  Triggers can only effect items that are within the page you are calling.  So in this case you would want the action to be setting a custom variable.  Then on the other page you would have that item hidden or shown based on that variable.  (Generally having the item "hidden on load" and the variable value triggering a "show" of that item works best.)

This works because variables are global to the project and can be set/evaluated on any page.

Comments

( 0 )
0
avatar andrea.newell   |    
Posted   3 years ago

Thanks - it's good to know that I didn't overlook something. I tried it several different ways. I have read your articles about variable and the user guide, but when I go to create a variable, I get stuck. For this instance that I've outlined, what kind of variable would I create and what would the parameters be? I'm guessing it's a boolean (true/false) - either the page is complete or it isn't - but how do I write in the conditions field to show the correct image?

Comments

( 1 )
1
3 years ago     Paul Schneider     783   |   9  

It could be boolean, number or string. Basically its quite simple - no extra conditions. First add a trigger that when page is complete or whatever the trigger is on page "a" to set a custom variable to X (e.g., if number to "1"). Then on page "2" have the item in question set to hidden on load. (You can select the item and under Interact ribbon bar click on the hide on load button.) Then add an action with the trigger of when variable is. In this case the custom variable = 1 and the action being "show" and pick the items to show. That should do it!

0
avatar andrea.newell   |    
Posted   3 years ago

I will try that - THANKS!

Comments

( 0 )
0
avatar andrea.newell   |    
Posted   3 years ago

Ok. I followed these steps, and it still isn't working. 

1. Select target page > Add Trigger > When current page is completed > set variable > next > trigger: when page's content has been viewed > variable: IPcomplete(number) > operator: = > value: 1 > fire once per page > apply.

2. Select icon > triggers variables > more > variables > IPcomplete(number) > = > 1 > next > show > next > IPcomplete / no effect / when variable is / IPcomplete(number) = 1 > apply.

What am I doing wrong? Thanks for all your help.

Comments

( 1 )
0
3 years ago     Paul Schneider     783   |   9  

So for step 2 drop the "no effect / when variable is / IPcomplete(number) = 1 > apply." That isn't needed. You'll have it set to not show as a default and then the trigger of variable >= 1 show the item will fire. Also make sure you are doing a full project preview - as variables here need to see both pages. For troubleshooting You could add a piece of text on the 2nd and first screen to display the value of the variable and that will tell you if "setting" it is a problem.