How to remove "options" word in the middle of multi-checkboxes?

kavitha_cr
Mega Guru

When I tried creating Multi-checkboxes under a label, In the middle of checkboxes, a single text line is populated when we select Legal-other field. But also "options" word is also populating after the single line text in the middle of checkboxes and also it is showing mandatory. so this 'options' word should be removed from the form. Is there any way to remove it?

find_real_file.png

20 REPLIES 20

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

that is shown OOB

you cannot remove it directly. It can be removed using DOM manipulation

Note: it is not recommended to do DOM

Create onLoad catalog client script and use this script

  • Ensure Isolate Script field is set to false
  • This field is true when client script is saved
function onLoad(){

$j('label_IO:09b4f089c0a800050098a7faefe5d732').hide(); //Replace this with the sys_id of the label you created.

}

find_real_file.png

Regards
Ankur

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

Hi Ankur,

Thank you for the reply, but here u mean the label sys_id means "Business subsegment requesting for" sys_id? 

I have tried replacing the 'business subsegment requesting for' label sys_id. Still the options word is displaying.

Thanks

Siva.

@Siva Jyothi 

Please create a label variable just before the checkbox

Or create container start and container end and add those checkboxes

Allen and Sagar have mentioned the approach

Regards
Ankur

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

Hello @Ankur Bawiskar 

We have tried the script that you have given but it is not working and getting an error 

 

while running Client Script : TypeError: $ is not a function