locked
Dynamics CRM Mobile Application form JavaScript not working RRS feed

  • Question

  • I have CRM 2015 while using on laptop browser(IE) javascript  running well for Doctor Entity

    but when I used mobile application the script not working. no error and set nothing on name field.

    actually script concatenate the  first name, lastname and title then save in the name field of record

    function setDoctorName()
    {
    var title=Xrm.Page.getAttribute("tcrms_title").getValue();
    var fname=Xrm.Page.getAttribute("tcrms_firstname").getValue();
    var lname=Xrm.Page.getAttribute("tcrms_lastname").getValue();
    var name=title+" "+fname+" "+lname;
    Xrm.Page.getAttribute("tcrms_name").setValue(name);
    }

    plz help script no running on Mobile Version for CRM


    Muhammad Sohail





    • Edited by sohail450 Tuesday, June 23, 2015 1:03 PM
    Tuesday, June 23, 2015 12:58 PM

All replies

  • Hi,

    Javascript should work in the web application as well as on the mobile app for Tablets. I would suggest start by debugging the Javascript with simple alert messages.

    Write and debug scripts for CRM for tablets

    Tuesday, June 23, 2015 3:20 PM
  • I have checked the script code is ok

    On web application of CRM record name set without any error in code

    but on mobile application when using phone script not working....

     

    Muhammad Sohail

    Wednesday, June 24, 2015 6:08 AM
  • Please check this

    https://community.dynamics.com/crm/f/117/p/137565/305264#305264


    Regards, Abhishek Bakshi If you find this post helpful then please Vote as Helpful and Mark As Answer. Check my blog on https://mydynamicscrmblog.wordpress.com/

    Wednesday, June 24, 2015 7:24 AM
  • If you mean the phone app, JS doesn't work, and isn't supported.

    The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions.

    Thursday, June 25, 2015 3:48 PM