Dear All,
I have custom SharePoint powerapp form built through customizing sharepoint list. The functionalities are working fine. But the problem is keeping it in SharePoint page through Script Editor Webpart.
We have imported the script editor webpart(pnp) to load the powerApps form (to pass the dynamic parameters from the URL) we are using the script editor form.
Thing is --> we are not able to fit the form into iframe. PowerApps form has custom width & height.
Width : 850px;
height: 1000px;
We cannot change the size of the form so we have to achieve through jquery code.
<html>
<style>
#powerappsframe
{
height: 850px !
}
#powerappsCanvas, iframe{
height: 850px !
}
</style>
<body>
<iframe id=powerappsframe src=""></iframe>
</body>
<script>
document.getElementById('#powerappsframe').src="https://web.powerapps.com/webplayer... "
</script>
</html>
Any idea will be really helpful.
Thanks,
Dhana