Here we will learn form panels. panels is a convenient feature introduced as a preview feature  for Dynamics 365

Code 

function Callweb(executionContext) {
var formContext = executionContext.getFormContext();
var webpane = formContext.getAttribute(“vinay_webpaanel”).getValue();
if(webpane == true)
{
Xrm.Panel.loadPanel(“https://www.crmonce.com/”, “CRMONCE”);
}
}

next, i have taken two option set

 

Add code to the field properties and next Save and Publish all 

Next test the App

1.. For “NO”

2…For “YES”