Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Unanswered

Call timer control in Javascript

Posted on by 120

Hello Guys,

I have a scenario to access QuickView form and get the value from the timer control which is present in the quick view form.

I tried with the below code and it is not working. Please give your suggestion on this.

var quickviewControl = formContext.ui.quickForms.get("quickview_name");  

if (quickviewControl != undefined)
   {
     
     if(quickviewControl.isLoaded())
     {
      
      var myValue = quickviewControl.getControl("timercontrol_name").getAttribute().getValue();// not working in this line
     
      return;
     }
          
     
   }
Thanks,
Vasanth
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Call timer control in Javascript

    Hi Vasanthkumar,

    I found two menthods as following shown, maybe you can try to use them to test:

    1.updateTimeDifferenceInSeconds() function

    Xrm.Page.getControl("mytimer").updateTimeDifferenceInSeconds();

    Getting the current value of the timer | Dreaming in CRM & Power Platform

    2.getelementById

    document.getElementById('mytimer').children[0].children[1].innerText

    (+) Access timer control value - Dynamics 365 Customer Service Forum Community Forum

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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