web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Javascript Error in Mobile

(0) ShareShare
ReportReport
Posted on by

Hi,


I have added JavaScript files in Lead form and that working fine in Desktop but that creates error in mobile . i have tested by using "Dynamics 365 for Phones" app in Android 6.0.1 .It showing "There at least one error on the form " and "setVisible/getText of null(From my JavaScript)". I don't know how to debug this issue .

Regards,

Manikandan S.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    EmployeeOcta Profile Picture
    6 on at

    Hello Manikandan S,

    Have a look at below url , it may help.

    developers.google.com/.../remote-debugging

  • Verified answer
    Community Member Profile Picture
    on at

    Hi,

    it seems that between your web and mobile form there are some differences. Fields/Sections/Tabs not on the form.

    The mobile rendering is limited to 5 tabs, so if you have 6 tabs all the Jscript running on the 6th won't work. Thus maybe your error

  • Verified answer
    Syed Ibrahim Profile Picture
    6,257 on at

    Please try to use the below check in your js to run on the mobile client.

    if (Xrm.Page.context.client.getClient() = "Mobile") { // Add code that should run in CRM for phones and tablets here }

    Hope this helps.

    Note: if am not wrong you can't debug the js in mobile app.

    If the suggestion resolved your query .Pls mark it as answered/verified to close the thread.

  • Community Member Profile Picture
    on at

    Thank you EmployeeOcta and Guillaume Domont,

    HTML WebResources are not shown in Mobile ,Is there any option to show HTML Webresources in Mobile?

  • Community Member Profile Picture
    on at

    Hi Syed,

    Thanks for your reply. we can debug js from mobile by EmployeeOcta's answer.

    regards,

    Mani

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans