In my screen, I have 1 video and 2 buttons : "Button A" & "Button B".
When I clicked and video and it played for 3 mins, Button A would be visible. when the viewer click Button A then Button B become visible?
Click the video--> Video played 3 mins --> Button A visible--> Click Button A --> Button B visible
Is anyone can help to share your insights on it. many thanks.
Solved! Go to Solution.
Hi @TTZ,
You could declare two variables for the Onvisible property of the screen. You can use those two variables in the visible properties of the two buttons to either show or hide them. When clicking the video you can use a timer to count till 180 seconds to delay showing the Button A.
Below is an example approach.
1. Use the following formula in the OnVisible property of your screen:
UpdateContext({ButtonAVisible:false,ButtonBVisible:false})
2. In the OnStart of the Video use this formula:
UpdateContext({TimerGo:true})
3. Make sure you set the Duration of the Timer control to 180000 and you use the TimerGo variable for the Start property. Use the following formula for the OnTimerEnd property:
UpdateContext({ButtonAVisible:true})
4. Make sure you use the ButtonAVisible variable in the Visible property of your ButtonA. In the OnSelect use the following formula:
UpdateContext({ButtonBVisible:true})
5. Make sure you use the ButtonBVisible variable in the Visible property of your ButtonB.
Hi @TTZ,
You could declare two variables for the Onvisible property of the screen. You can use those two variables in the visible properties of the two buttons to either show or hide them. When clicking the video you can use a timer to count till 180 seconds to delay showing the Button A.
Below is an example approach.
1. Use the following formula in the OnVisible property of your screen:
UpdateContext({ButtonAVisible:false,ButtonBVisible:false})
2. In the OnStart of the Video use this formula:
UpdateContext({TimerGo:true})
3. Make sure you set the Duration of the Timer control to 180000 and you use the TimerGo variable for the Start property. Use the following formula for the OnTimerEnd property:
UpdateContext({ButtonAVisible:true})
4. Make sure you use the ButtonAVisible variable in the Visible property of your ButtonA. In the OnSelect use the following formula:
UpdateContext({ButtonBVisible:true})
5. Make sure you use the ButtonBVisible variable in the Visible property of your ButtonB.
It works, thank you so so so much.