I have a Dynamics CRM form and add an iFrame in it, inside this iFrame I have a plan to display an ASPX webform page, I already develop that webform and it works like a charm.
The problem raised after I deploy ASPX webform to Dynamics CRM iFrame. After the submit button is clicked, Dynamics CRM open a new browser window with my webform inside it. Although it doesn’t remove basic function of aspx webform, but I think it will make a “not good” ux.
I’ve tried any workaround but still can’t meet my need. I tried putting target=”_self” inside ASPX page but still no luck, I tried using AJAX update panel but it make no difference.
Finally, after some desperate research, I found the solution:
- Open your CRM form
- Open your iFrame properties
- Uncheck “Restrict cross-frame scripting” inside Security section in General tab.