Issues with "Save as draft" button in employee center

Bhumika_Patil
Tera Contributor
We are facing an issue with the "Save as Draft" button on the catalog item form.

We have two list collector variables—List Collector 1 and List Collector 2—where the values in List Collector 2 are dependent on the selections made in List Collector 1.
After the user fills out the list collectors and saves the form as a draft, upon reopening the form, the values in List Collector 2 are not retained and are cleared, while the values in List Collector 1 preserved.

If anyone has any suggestions or insights, please let us know.

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Bhumika_Patil 

Seems due to dependency the 2nd variable is getting cleared

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Bhumika_Patil 

it's working for me in my instance when I opened the draft version

share your variable configuration

In the 2nd variable you should add this in variable attributes

ref_qual_elements=firstVariableName

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

 

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

_SnowDeveloper
Tera Contributor

Hi @Ankur Bawiskar ,
Variable configuration:
List table - sys_choice
Reference qualifier - javascript:"name=cmn_location^element=Country^dependent_valueIN"+current.variables.firstVariable.getDisplayValue();

 

Also, I tried with "ref_qual_elements=firstVariableName" but no luck

@_SnowDeveloper 

what's your question here?

The post talks about save as draft feature but your comment is different.

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