Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Project workspace status report dropdown default

Rocky5
Kilo Sage

Hello All,

 

On project workspace, For status reports we have the 'create new' button with dropdown option as 'copy' like in the below screenshot. 
I want to make 'Copy' as default button instead of 'Create new' and put 'create new' in the dropdown option. I am not sure how I can modify that. 

Rocky5_0-1764715412422.png

 

Any help is appreciated.

 

Thanks,

Rocky.

 

2 REPLIES 2

frviuf
Giga Sage

Hi @Rocky5,

 

Here is the UI Macro that controls the Status header:

https://<instance name>.service-now.com/sys_ui_macro.do?sys_id=f783e8a687d003008b9b3a0548cb0b93

 

Replace the div with class right-container pull-right with below:

<div class="right-container pull-right">
  <div id="dropdownMenubtnGrp" class="btn-group" role="group">
    <button type="button" class="btn btn-default navbar-btn" id="copy_status_report">${gs.getMessage('Copy')}</button>
    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="dropdownMenu">
      <span id="dropdownMenu1" class="caret" />
      <span id="dropdownMenu2" class="sr-only">${gs.getMessage('Toggle dropdown')}</span>
    </button>
    <ul class="dropdown-menu" aria-labelledby="dropdownMenu" style="min-width:106px;">
      <li class="dropdown-item" id="new_status_report_list">
        <a href="javascript&colon;void(0);" id="new_status_report">
          <span>${gs.getMessage('Create new')}</span>
        </a>
      </li>
    </ul>
  </div>
</div>

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Rocky5 

I will recommend not to alter the OOTB behavior as that means you are doing customization and adding technical debt.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader