<style>
iframe#powerAppsIframe {
max-width: 1024px;
margin: auto;
display: block;
}
</style>
<script>$(document).ready(function() {
if (window.location.href.indexOf(‘?screenID=’)!=-1){
var screenID=window.location.href.substring(window.location.href.indexOf(‘?screenID=’)+10,window.location.href.length);
var oldSrc=$(‘#powerAppsIframe’).attr(“src”);
var newSrc=oldSrc+”&screenID=”+screenID;
$(‘#powerAppsIframe’).attr(“src”,newSrc)
}
});</script>
<iframe id=”powerAppsIframe” width=”100%” height=”768″ src=”https://web.powerapps.com/webplayer/iframeapp?hideNavBar=true&source=iframe&screenColor=rgba(255,255,255,1)&appId=/providers/Microsoft.PowerApps/apps/APPID” /></iframe>

 

In Powerapps create a new variable and set to true on first load:

Set(firstRun, true)

Create a timer object and set the autorun to true, set the OnTimerStart value to:

If(
firstRun=true,
Set(firstRun, false);
If(Param(“screenID”)=”mentalHealth”, Navigate(‘Mental Health Home’, ScreenTransition.Fade));
If(Param(“screenID”)=”emotionalSupport”, Navigate(‘Emotional Home’, ScreenTransition.Fade));
If(Param(“screenID”)=”financialSupport”, Navigate(‘Finance Home’, ScreenTransition.Fade));
If(Param(“screenID”)=”physicalHealth”, Navigate(‘Physical Home’, ScreenTransition.Fade));
If(Param(“screenID”)=”anonChat”, Navigate(‘AnonymousChat’, ScreenTransition.Fade))
)