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.

How to hide UI Action Button 'Create From Library' in Control Assessment tab.

ChuanYanF
Tera Guru

Dear experts, 

 

I would like to know how do I hide this UI Button "Create from Library" from the control assessment tab.

ChuanYanF_0-1750821963439.png

 

1 ACCEPTED SOLUTION

ChuanYanF
Tera Guru

So I have found it in a UI Page where it is stored under advanced_assessment here

ChuanYanF_0-1750830922967.png


I have added syntax to comment it out of the form

<!-- <a id="add_controls" class="action_context btn btn-default" style="margin-left: 10px;" ng-click="addControls()" ng-disabled="assesments.isDisabled" role="button" aria-disabled="{{assesments.isDisabled}}" aria-label="${gs.getMessage('Click to create new controls using control objectives for this entity')}" title="${gs.getMessage('Click to create new controls using control objectives for this entity.')}" ng-if="assesments.canCreateControl &amp;&amp; ( control_identification == 1 || control_identification == 3 )"> ${gs.getMessage("Create From Library")} </a> -->

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@ChuanYanF 

is that a normal form section?

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

ChuanYanF
Tera Guru

So I have found it in a UI Page where it is stored under advanced_assessment here

ChuanYanF_0-1750830922967.png


I have added syntax to comment it out of the form

<!-- <a id="add_controls" class="action_context btn btn-default" style="margin-left: 10px;" ng-click="addControls()" ng-disabled="assesments.isDisabled" role="button" aria-disabled="{{assesments.isDisabled}}" aria-label="${gs.getMessage('Click to create new controls using control objectives for this entity')}" title="${gs.getMessage('Click to create new controls using control objectives for this entity.')}" ng-if="assesments.canCreateControl &amp;&amp; ( control_identification == 1 || control_identification == 3 )"> ${gs.getMessage("Create From Library")} </a> -->