Remove "Required Information" option on Portal

Community Alums
Not applicable

Hello,

I have a requirement to remove the "Required Information" option on the Portal, So I have cloned the sc_cat_item page and created new widget for "SC Catalog Item" but when I see the page in portal I'm getting below errors. I haven't made any changes to the page yet but still it's not working.

prudhvirajy_0-1744772416221.png

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Code on the cloned widget (sc_cat_item) need to be modified as below to fix the issue.

for (var i = 0; i choiceListQuantity.size(); i++) {
var choice = choiceListQuantity.get(i);
if (!isNaN(choice.getValue()))
choicelistQuantityData.push({value : parseInt(choice.getValue()), label : choice.getLabel()});
}

replace with the below code:

for (var i = 0; i choiceListQuantity.getSize(); i++) {
var choice = choiceListQuantity.getChoice(i);
if (!isNaN(choice.value))
choicelistQuantityData.push({value : parseInt(choice.value, 10), label : choice.label });
}

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Community Alums 

but why to remove that "Required Information" text?

it's a good practice to show that so that users know what's being mandatory.

Did you check the line number?

Open that cloned widget in Widget editor and then check this link on how to do

How to remove "indicates required" from incident portal form? 

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

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

Community Alums
Not applicable

Hi @Ankur Bawiskar ,Yes I have checked the line but it doesn't say any thing when I clone the widget and attached it to cloned page it's giving me above errors

@Community Alums 

then you will have to debug that line of widget

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

Community Alums
Not applicable

@Ankur Bawiskar 

is that line referring to Server Script or Client or HTML any suggestions on debugging the widget?