Announcements
Hi. I have added a custom button on a form, when this button is clicked on a quick create form opens up. This works fine on the Desktop version of Dynamics however when users use this button on their phone the button sometimes works and sometimes don't. I have tested it my self and it seems like upon refresh of the page the button sometimes stops working, as in the button does nothing and the quick create form don't open up. This is NOT the Dynamics app for phones, but the normal web browser on the phone.
This was tested in Safari (latest version) using Iphone. And on Google browser on phone.
This is the button in question:
Any suggestions on how to get the button to be more reliable?
I made a reproduction and it works on Safary on Iphone.
You can try:
1. Make sure that the checkbox "Restrict cross frame scripting, where supported" box is not checked the web-resource control.
2. Use a relative path to the JS file to use cache. See https://learn.microsoft.com/en-US/power-apps/maker/data-platform/powerapps-checker/rules/web/use-cached-webresource
Replace in script tag: /WebResources/evry_showcompliance by evry_showcompliance
3. Try browsing with Safari in private mode to make sure it's not a cache issue. Try disabling the pop-up blocker.
4. Make a minimal test in your JS file
You can try this code which opens a quick create form for a contact:function compBtn() {
parent.Xrm.Navigation.openForm(
{
entityName: "contact",
useQuickCreateForm: true
}
);
}
5. Embedded the script in the HTML web-resource.
It seems like turning on "enable for mobile" did make the button somewhat more reliable
however here is the source code for the HTML file:
Hi,
Would you please share your web resource about this button.
Did you try to use it in another browser?
Hello, can you share the associated source code ?
André Arnaud de Cal...
294,118
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator