facing issue with check box type variables in service catalog

rajasekahr
Tera Guru

I am observing 2 issues with check box controls in service now

1.after creating 2 check box control in sequence i am facing some string as"options " in serice portal.

2.in order to avoid this i am introduced a new label between 2 check box control,that causing spacing issue between the variable .

3.another issue...with check box

label having 100

check box is having order 200

i am trying to set up mandatory for check box..but mandatory symbol appearing at label variable which is having 100 order

 

Please suggest if any body faced similar issue?

 

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

By default...SN adds the "Options" label automatically when there are more than 1 checkbox in a row. Before Madrid...you could add a label ordered before those 2 checkboxes and set the name as a simple blank space (press spacebar once) and save. This would "blank out" and not show the word: "Options". Madrid and after...you can't do that anymore.

If you're on Madrid or New York...you can create a label ordered before those 2 checkboxes and then set it to say something relevant that still works with your form. Such as: Please select an option below...if you don't like it just saying "Options".

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

5 REPLIES 5

Erik Gunther2
Kilo Guru

Can you post some screenshots? I'm happy to help but am having trouble understanding your problem description.

Yash Agrawal1
Tera Guru

Hi  rajasekahr

 

i suggest you to just check the order of both the label and checkbox.might be the order is same and that's why you are faced this type of issue.

for more help just give me some screenshot.i will definitely try to solve your problem 

 

Thanks

Yash.K.Agrawal

 

shloke04
Kilo Patron

Hi,

Something similar to this is what you are getting if I am not wrong. For your first issue please follow the steps below which would remove the extra space between your variables:

 

find_real_file.png

 

  • Create a new Label just before the checkbox variable where the "Option" text is coming and then use an On Load Catalog Client Script to hide the Option text as shown below:
function onLoad() {
   //Type appropriate comment here, and begin script below
   g_form.setLabelOf('hide',' ');  //Replace"hide" with your variable name of type label you created before your checkbox 
}

find_real_file.png

 

 

Result:

 

find_real_file.png

 

Mandatory symbol comes up at the label because for checkbox variables ServiceNow groups all of them together when there are multiple of them, please refer the link below for your second requiremnt.

 

https://www.servicenowguru.com/scripting/client-scripts-scripting/checkbox-variables-mandatory/

 

Hope this help. Please mark the answer as helpful/correct based on impact.

 

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Allen Andreas
Administrator
Administrator

Hi,

By default...SN adds the "Options" label automatically when there are more than 1 checkbox in a row. Before Madrid...you could add a label ordered before those 2 checkboxes and set the name as a simple blank space (press spacebar once) and save. This would "blank out" and not show the word: "Options". Madrid and after...you can't do that anymore.

If you're on Madrid or New York...you can create a label ordered before those 2 checkboxes and then set it to say something relevant that still works with your form. Such as: Please select an option below...if you don't like it just saying "Options".

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!