unmapped fields showing up in the variables section in backend - variable editor/ formatter

LYDIA PEARLINE
Tera Contributor

Hi, I have a record producer created in the csm scope. I have selected applies to target record checkbox, but there is a ui action - value action- clear value selected as well. So it is clearing up the values in the backend (variables) section. How do i show the variables that are only filled on the form and not the other fields. 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@LYDIA PEARLINE  

So what's your concern

1) clearing of variable on target record -> if yes then check if any UI policy is configured which applies on target record and has UI policy action with Clear Value checkbox checked

2) hide empty variables -> you can use onLoad client script + Display business rule

Check which variables are filled and then hide the ones which are empty

use my blog

Hide empty variables on RITM and TASK record 

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

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@LYDIA PEARLINE  

So what's your concern

1) clearing of variable on target record -> if yes then check if any UI policy is configured which applies on target record and has UI policy action with Clear Value checkbox checked

2) hide empty variables -> you can use onLoad client script + Display business rule

Check which variables are filled and then hide the ones which are empty

use my blog

Hide empty variables on RITM and TASK record 

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

@LYDIA PEARLINE  

Hope you are doing good.

Did my reply answer your question?

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

LYDIA PEARLINE
Tera Contributor

Thank you Ankur, I was looking for option2 - which answers my question, but mine is in csm scope, which we are doing it in the case table, will it work in scoped application as well? 

@LYDIA PEARLINE  

yes it should work for scoped app as well, so create those components in CSM scope

Also ensure you enhance the script and logic for case table

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