We have requirement in Dynamics CRM to get dialog popup box through html.
To get the html
<html><head>
<title> Account Type</title>
<script src="ClientGlobalContext.js.aspx"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script language="javascript" type="text/javascript">
//To get parent form data on popup write logic
function GetAllAccountsRecords()
{
//custom logic
}
function btnSubmit()
{
//on submit button perform action
var crmWindow = parent.Alert.getCrmWindow();
//write here to perform action on submit button
parent.$("#alertJs-wrapper").hide();
}
</script>
</head><body onload="GetAllAccountsRecords()">
<br><p>Please, select data.</p><br>
<br>
<input onclick="btnSubmit();" value="Submit" style="height: 24px;font-family: Segoe UI,Tahoma,Arial;border: 1px solid #C6C6C6; background-image: none;margin-top: 10px; width: auto !important; min-width: 80px;white-space: nowrap; color: #444444; background-color: #FFFFFF" type="Button">
</body>
</html>
No comments:
Post a Comment