- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I found this script in the "Create RIDAC button" within that page which might be rendering, try to play with the JSON array of objects and see if the sequence changes
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Ryo14
Check this post : Project Workspace
- After you Click on the Create RIDAC split-button or the More Actions menu component in the center canvas layout.
- Review the right-hand Config panel. Look at the Items JSON array or property fields mapped to that dropdown component.
- If the items are hardcoded in a JSON payload, simply rearrange the code blocks to move the "Add Issue" entry block higher than "Add Risk".
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Did you get a chance to check the solution I shared above?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Ryo14
Check this post : Project Workspace
- After you Click on the Create RIDAC split-button or the More Actions menu component in the center canvas layout.
- Review the right-hand Config panel. Look at the Items JSON array or property fields mapped to that dropdown component.
- If the items are hardcoded in a JSON payload, simply rearrange the code blocks to move the "Add Issue" entry block higher than "Add Risk".
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thank you for your suggestion.
I was able to achieve the desired behavior by customizing the UI Builder configuration.
What I changed:
- Updated the split button label to use canCreateRIDACList[1].label so that Add Issue is displayed as the primary action.
- Updated the dropdown items to exclude the Issue entry and keep the remaining RIDAC options in the dropdown.
- Modified the update Param and Open Modal client script.
Original:
const table = (event.payload.item) ? event.payload.item.id : 'risk';2const actionType = (event.payload.item) ? event.payload.item.label : await helpers.translate('Add risk');const table = (event.payload.item) ? event.payload.item.id : 'issue';2const actionType = (event.payload.item) ? event.payload.item.label : await helpers.translate('Add Issue');
The key issue was that when the main split button was clicked, event.payload.item was undefined, causing the script to always fall back to 'risk'. After changing the default value to 'issue', the primary button correctly opens the Issue modal, while the dropdown options continue to open their respective RIDAC record types.
This solved the problem and the button now behaves as expected.
Thank you for pointing me in the right direction.