- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2025 08:00 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2025 10:19 PM
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 });
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2025 08:27 PM
@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?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2025 09:21 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2025 09:26 PM
@Community Alums
then you will have to debug that line of widget
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2025 09:31 PM
is that line referring to Server Script or Client or HTML any suggestions on debugging the widget?