Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Start cursor in specific field when creating a case

Posted on by

After creating a request, the cursor starts in a random field. Is it possible to indicate in which field the cursor should start so that it is easier and faster to fill in an case record?

See below; When I create a case, the cursor start at Aanvraagtitel (1) but I want to start in the Contactpersoon field (2) (custom made field)

pastedimage1614257865876v1.png

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,198 User Group Leader on at
    RE: Start cursor in specific field when creating a case

    Hello, 

    I believe that you need a JavaScript code to implement your scenario. I just replay the same scenario in my environment. Basically, you need to call setFocus() method when you create a case. 

    Code: 

    function setFocusOnCreateCase(executionContext, fieldName) {
        var formContext = executionContext.getFormContext();
        if (formContext.ui.getFormType() == 1) {
            if (formContext.getControl(fieldName) != null)
                formContext.getControl(fieldName).setFocus();
        }
    }


    In my scenario, I set the focus on the description field: 

    pastedimage1614263117751v4.pngpastedimage1614263145648v5.png

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans