How to auto expand form included in order guide when only 1 included item is selected.

Saras Moorthi
Tera Contributor

Hi all, 

 

I need help on on this. requirement is to auto expand the form when only 1 included item selected.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0821168

This KB is have steps to set the value to true , but I need some additional script to check if only 1 included item is selected and then set the value to true. any help much appreciated. 

 

 

1 REPLY 1

JenniferRah
Mega Sage

Follow the instructions in the KB but on the line that says:

is-open="item.isOpen"

Make it say this:

is-open="(includedItems.length==1)"