Mandatory on Checkboxes in Service Portal

qqj5004
Kilo Contributor

Hi all

I am having an issue with mandatory checkbox. In Jarkata we have format below

Label (mandatory if no checkbox is selected)

checkbox1

checkbox2

checkbox3

In Service Portal, I can't make the same feature happen. I had considered the onsubmit client script, but on users's perspective, it is not a good practice for user experience because every time they submit a form, alert pop up. What if there is case checkbox within checkbox, like checkboxes show based on first checkbox list.

Is there any solution on this issue? Please help.  

Thank you

12 REPLIES 12

I apologize. I should be more specific as I may be mis-interpreting what the actual issue is.

The original post had the issue of grouped checkbox variables (listed directly after the other) and making the label mandatory for the group by making the first checkbox in the list mandatory. This is the functionality that works native UI side and didn't function the same when viewing in Service Portal in previous versions.

Here in this test I use a Kingston instance:

Build name: Kingston
Build tag: glide-kingston-10-17-2017__patch6-05-16-2018

And it seems to be working without any scripting or ui policies. This is a plain setup of just checkboxes.

Cupcake
Mega Guru

I've corrected our issue for mandatory checkbox in Service Portal.

Are you using a UI Policy? Can you share if you don't mind?

Send a screenshot of what you have?

 

Thanks,

Karen

shawna
Tera Guru

I was looking for something similar and was never able to achieve what I wanted OOB. So I had to create a simple widget and added it to the catalog item as Marco. It works fairly well for me as I also needed to dynamically retrieve the checkbox value from a table, which there is no way I can do with OOB checkbox.