- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2021 09:46 AM
Hello,
I have 3 checkboxes A, B, C in the Catalog item. User only checked A checkbox, but in the portal it is showing up true and false values. It is possible only shows the checkbox with true value? Thank you
User selected "A"
In the Portal is showing all values.
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2021 09:19 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2021 09:54 AM
Glad to hear that!!
Will replicate the same in PDI and will post the remediation. Can you share the screenshot for the same that will be helpful.
Thanks,
Aman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2021 11:49 AM
Aman,
I screwed up the date field. I got it works now. Many thanks for your time and effort.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2021 11:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 07:02 AM
Hi @Aman Singh_ - We are currently trying to do something similar on mail script, we are showing a variable summary on a case opened notification once the request is submitted, however the variable summary on the notification, it still shows the checkboxes values which are false. Do you know what change we could make to the below to remove the false checkboxes here:
We have tried adding a number of other if conditions but still no luck
//template.print("Summary of Case :<br />");
//template.print(current.number);
template.print(current.number + ": " + current.category.getDisplayValue() + "<br />");
template.print(" <br />");
var keys = [];
var set = new GlideappSequencedQuestionSet();
set.setTableName(current.sys_class_name);
set.setTableSysID(current.sys_id);
set.load();
var vs = set.getFlatQuestions();
if (vs.size() > 0)
printVariables(vs);
function printVariables(vs) {
template.space(4);
template.print("Summary of request:<br />");
template.print(" <br />");
for (var i=0; i < vs.size(); i++) {
if(vs.get(i).getLabel() != '' && JSUtil.notNil(vs.get(i).getDisplayValue()) ){
template.space(4);
template.print(' ' + vs.get(i).getLabel() + " : " + vs.get(i).getDisplayValue() + "<br />");
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2021 11:25 AM