Hi @xyvic ,
Could you please share a bit more about your scenario?
Do you want to show or hide a Iframe component within your Model-Driven form using Business Rules?
If you want to use Business Rules to show or hide a Iframe component within your Model-Driven form, I afraid that there is no way to achieve your needs in PowerApps currently.
Currently, the Business Rules could only be used to show or hide a field in a Edit form. There is no way to choose the Iframe component in a Model-Driven form using Business Rules.
As an alternative solution, I think custom JavaScript web resource could achieve your needs. You could consider create a custom JavaScript file, within this js file, specify a proper function within it similar as below:
function ShowOrHideIframe(){
// Specify confition
if(.....){
Xrm.Page.getControl("iframe").setVisible(true)
}else{
Xrm.Page.getControl("iframe").setVisible(false)
}
}
Then upload the above JS file into your current solution as Web resources. After that, edit your Entity Form in classic mode, then double-click the Iframe component, then bind the ShowOrHideIframe function from above JS file as event.
Please check and see if the following videos would help in your scenario:
https://www.youtube.com/watch?v=cdxotlD26EM
https://www.youtube.com/watch?v=E8EXlRBTL2Y
Best regards,