web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Changing Tab Focus when Business Required error occurs

(0) ShareShare
ReportReport
Posted on by 25

Hi All

Hopefully a simple question for you.

If a business required error occurs on a different tab in UCI, how can I force the tab focus to change in JScript?

The scenario we have is that we allow a Lead to be saved with only the minimum amount of data required however if they want to qualify the lead there are about 7 data fields that need to be entered.  We display an Alert Dialog regarding the error but the field may be on a different tab, so when Ok is clicked I would like to change the Tab focus to the tab with the control on it.

Cheers

Alan

  

I have the same question (0)
  • Suggested answer
    rthompson Profile Picture
    1,532 on at

    Hi Alan,

    Please see my link that I posted on tabs.  You have to click on the tab.  It's design that way.

    community.dynamics.com/.../1001540

  • Verified answer
    Henry J. Profile Picture
    5,237 on at

    Hi Alan,

    The tab setFocus method should help: https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-ui-tabs/setfocus

    Henry

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
BillurSamdancioglu Profile Picture

BillurSamdancioglu 95 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 83 Super User 2025 Season 2

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans