Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Javascript Error in Mobile

Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Javascript Error in Mobile

    Hi Syed,

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

    regards,

    Mani

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Javascript Error in Mobile

    Thank you EmployeeOcta and Guillaume Domont,

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

  • Verified answer
    Syed Ibrahim Profile Picture
    Syed Ibrahim 6,257 on at
    RE: Javascript Error in Mobile

    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.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Javascript Error in Mobile

    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
    EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: Javascript Error in Mobile

    Hello Manikandan S,

    Have a look at below url , it may help.

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans