Hi Community!
I ran into this a few months back but was asked again. In the Classic UI I was able to go to “Screens” in a Customization package and drag the tab order around so the first tab would be the new default tab. In the modern UI I can use the Screen Configuration tool to move the tab order in a similar way but even if I move a tab to the 1st, when I open the page it defaults to the original tab that defaulted.
Appreciate any feedback or guidance!
~Chris
Solved
Modern UI changing default tab on a screen.
Best answer by cdiangelo46
To answer my own question for others reference, and this was neither graceful nor clean. I would recommend exporting your package before proceeding with what I did so you can restore easily if needed.
- Add Existing Screen to Screens. In my case it was PM301000 (Projects)
- Expand Screen and select ModernUI Editor
- On the HTML tab Ctrl+F for “qp-tabbar”
- Change the “active-tab-id=” value to the name of the tab you want it to default. This may also require you to do an additional Ctrl+F for “qp-tab”. For me it was “BalancesTab”
- Save the change. You will probably receive an error because there is some sort of bug here.
- Return to the Customization screen and export your package.
- Unzip the Package
- Drill into the unzipped folder structures. In my case it was ...screens\PM\PM301000\extensions. Open the html with notepad.
- The generated modified code is incorrect. Overwrite it. I used…
<template>
<qp-tabbar modify="#ProjectProperties_tab" active-tab-id="BalancesTab"></qp-tabbar>
</template> - Zip up the folders in the same way it was extracted, this means the Custom.Zip should have screens and project.html
- Upload/Replace existing Customization Package
- Publish (and I do with scripts since I’ve been running into ModernUI issues related to not doing this)
- This will default the tab regardless of the order of the tabs on the screen. You can use the Screen Configurator to change the tab order.
Hope this helps someone.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

