Options label in checkboxes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2020 05:36 AM
I have multiple checkboxes(18 in total) with a label prior to the 1st checkbox however when shown in the portal it comes up with 'Options' after the 10th checkbox.
In previous versions, I was able to hide this by creating a label with a blank or just a space question however in Madrid a blank or space label question is no longer allowed.
I've also tried creating a label and hiding it via an onLoad script but neither of the 2 lines don't work.
g_form.setVisible('user_settings_label', false);
or
$('label_IO:97a5e5f8dbb30c508c3410a014961993').hide();
Does anybody have a workaround without re-entering the label?
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2020 05:45 AM
Hi Mary,
try this
g_form.setDisplay('user_settings_label', false);
though it is same as setVisible, However setDisplay() will reclaim the space if the field is hidden.
If my answer was able to solve your query please mark it as Helpful & Correct.
Thank you
Siddhnath Pandey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2023 11:13 AM
Hi Siddhnath Pandey,
I have created normally check boxes but automatically cteated options please help me how to remove for more deatils find the screenshot , above solution not understanding please clearly explain to me it could be helpful in advance thank you
Thanks & Regards,
Pavani

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2020 07:12 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2020 07:26 AM
Hi,
Just to clarify because I wouldn't want accidental misinformation passed through this thread. Within the back-end and portal when you add checkboxes (more than 1 in a row) an "automatic" label appears listed as "Options". I'm not seeing where after 10 checkboxes it randomly adds in another "automatic" label as you mentioned in your post. To get yet another "Options" label automatically added is when you maybe split the checkboxes from 1 column to two...and so in your second column of checkboxes it's treated with the same methodology as the system going: Oh ok, there's more than 1 checkbox in a row, I'll add a label with "Options".
As you can see here, I went and created 12 checkboxes in a row and neither in the back-end view or portal does Options show a second time:
So to the issue in this thread, you are correct that the loophole to remove the label was to create a label variable yourself and you could press space and the system would just allow a blank spot there. This was removed a few versions ago.
I just wanted to clarify that you are not meaning that after 10 checkboxes all in a row, a second label randomly appears all within the same column, but instead, it's because these checkboxes are split whether through a literal "split" variable or some other break, etc.
Correct?
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
Hi ,
Here is Link which can help you
https://docs.servicenow.com/bundle/kingston-it-service-management/page/product/service-catalog-management/task/t_CreatUIPolicyForSvcCalgIt.html