Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

JS not working on mobile app but working on dev env.

Posted on by 70

Hi,

My JS is not working on mobile app but working in  dev environment. Please suggest how it will work.

Thanks.

*This post is locked for comments

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: JS not working on mobile app but working on dev env.

    Hi Priyanka,

    1.make sure you are calling the function and script is added to the mobile form.

    2. try to debug it : community.dynamics.com/.../debug-script-on-tablet-mobile-application

    3. would you mind putting a simple alert for a check?

  • priyanka_24 Profile Picture
    priyanka_24 70 on at
    RE: JS not working on mobile app but working on dev env.

    No, not getting any error but changes are not getting reflected.

  • Preeti Sharma Profile Picture
    Preeti Sharma 2,678 on at
    RE: JS not working on mobile app but working on dev env.

    Hi Priyanka,

    Are you getting any error on mobile related to javascript?

    Thanks

  • priyanka_24 Profile Picture
    priyanka_24 70 on at
    RE: JS not working on mobile app but working on dev env.

    1.I am using MS Dynamics CRM 365 online vs 8.2.

    2. My JS is a simple script to show/hide fields based on some other field change.

    3. It should work both on CRM online and mobile app.

    4. For mobile app it is not working.

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: JS not working on mobile app but working on dev env.

    1.What is the CRM version?

    2.would you mind sharing the script - there can be some functions which are using has been deprecated.?

    3. Did you use

    if (Xrm.Page.context.client.getClient() == "Mobile")

    {

    your code

    }

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans