Add input field to checkbox

Benedikt Kaiser
Tera Contributor

Hi, 

 

I have a catalog item where I want to show 3 checkboxes. Two boxes should have fixed values, and on box should have the option, that the user can write something.

This should look likes this:

Checkboxes.PNG

In ServiceNOW I have created a variable with the type "Multiple Choice" and created the different choices. 

BenediktKaiser_0-1673601911536.png

 

However, now I am not sure how I can adjust the choice "Sonstiges" in order to get a input field to the checkbox.

 

Thank you in advanced, 

best regards,

 

Benedikt Kaiser

 

1 ACCEPTED SOLUTION

Hi @Benedikt Kaiser 

 

You can simply create Catalog UI Policy from the related list of your Catalog Item. 

 

Condition: Operation Time is Sonstiges.

 

UI Policy Action: 

field/variable - Sonstiges

Visible - TRUE

Rest you can just leave alone.

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

View solution in original post

6 REPLIES 6

AnubhavRitolia
Mega Sage
Mega Sage

Hi @Benedikt Kaiser 

 

I fear this is not possible through simple configurations.

 

What you can do is create a separate String variable 'Sonstiges' and make it visible only when you select 'Sonstiges' as the choice for your multiple choice question.

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

Thanks for your quick answer. That sounds good to me. 

Can you tell me where I can make the setting to make it visible once "Sonstiges" is selected?

You can use UI policy/On change client script on your choice variable and put condition when Sonstiges is selected then show the new input field.

Hi @Benedikt Kaiser 

 

You can simply create Catalog UI Policy from the related list of your Catalog Item. 

 

Condition: Operation Time is Sonstiges.

 

UI Policy Action: 

field/variable - Sonstiges

Visible - TRUE

Rest you can just leave alone.

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023