Service Portal: Hide Required Information Box

jmiskey
Kilo Sage

Is there a way to easily hide the "Required Information" box which lists out all the Required Fields on the Service Portal, but just for a particular Catalog Item (and not across the board for all Catalog Items)?

I am using Helsinki.

Thanks

6 REPLIES 6

Ujjawal Vishnoi
Mega Sage
Mega Sage

Hi Joe,



You will have to make the changes in SC Catalog Item.



You will have to make the changes in html section in the below mentioned snippet.



<div ng-if="hasMandatory(mandatory)" class="alert alert-info" style="margin-top: .5em">


                              <span ng-if="hasMandatory(mandatory)">${Required information} </span>


                              <span ng-repeat="f in mandatory" class="label label-danger" style="margin-right: .5em; display: inline-block;">{{::f.label}}</span>


                          </div>



Here you can check the item in ng-if table and condition should be only true when item is other than that item.



Hope this helps.



Regards


Ujjawal


Thanks for the Reply.



I am afraid I don't understand how to do what you are suggesting.   Where exactly do I go to enter that code in?


Hi Joe,



You can add one more condition with ng-if="hasMandatory(mandatory)" . In this condition you can check that catalog item is other than the item where you do not want required information.



Regards


Ujjawal


I thought that box was an "out-of-the-box" setting that comes with Service Portal.   It appears at the bottom of our Service Portal forms, i.e.


find_real_file.png


Maybe that is not the case?   I may have to get together with our Service Portal programmer.   I am not sure what that widget is named, so I don't really know how to find it.   I have only done some simple Service Portal work, and not any customized widgets.