Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Help me with variable editor (Formatter)

Natan Felipe
Tera Expert

I need to display the value of the "Material type" field but the "material type" field is being cleared after activating read only in the formatter variable editor.

I want to understand why this is happening and where can I go to fix it?

I'm new to ServiceNow, I'm still learning a lot of things, to solve this problem I've already looked at business rules to see if there is any script with missing code.

 

Before the screen loads completely

find_real_file.png

 

After the screen loads completely

find_real_file.png

 

I thank you all for your help!

1 ACCEPTED SOLUTION

Narsing1
Mega Sage

Hi,

Hope its a RITM view. Please check these areas in your catalog Item.

Did you enable the UI Policy to run only on Catalog Item view / RITM level as well.  If so, try to uncheck in RITM level

find_real_file.png

Also, check the UI Policy Action for this variable whether you have checked "Clear the variable value".

find_real_file.png

Please mark it as correct answer if it helps

Thanks,

Narsing

View solution in original post

9 REPLIES 9

Narsing1
Mega Sage

Hi,

Hope its a RITM view. Please check these areas in your catalog Item.

Did you enable the UI Policy to run only on Catalog Item view / RITM level as well.  If so, try to uncheck in RITM level

find_real_file.png

Also, check the UI Policy Action for this variable whether you have checked "Clear the variable value".

find_real_file.png

Please mark it as correct answer if it helps

Thanks,

Narsing

Thanks!

Ankur Bawiskar
Tera Patron
Tera Patron

@Natan Felipe 

Please check this

1) Any onLoad catalog client script or onLoad Catalog UI Policy is running on Target record if this is for record producer.

- check Applies on Target Record is true

2) Any onLoad catalog client script or onLoad Catalog UI Policy is running on RITM

- Check Applies on Requested Item is true

Regards
Ankur

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

@Natan Felipe 

Thanks for marking my response as helpful.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

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