not able to hide the field in catalog item

Shivani29
Mega Guru

HI All,

I have integration between servicenow and 3rd party application. Evertything is working fine, all the data flows correctly in ServiceNow but i have a small issue. there is a field on form i.e. field A, it should be hidden when field B has a value 'abc'.

I tried with catalog script but it is not working. I tired with UI Policy as well but no luck.

It is working fine when we raise the request manually in ServiceNow.

Any lead please!!

Regards,
Shivani


1 ACCEPTED SOLUTION

Shivani29
Mega Guru

Hi All,

Thanks for your replies. I re created my client script and it is working now.

 

Thanks,
Shivani

View solution in original post

5 REPLIES 5

Anshu_Anand_
Kilo Sage
Kilo Sage

Have you tried onLoad script.

You want to hide it from list view, form view or both?

Regards,
Anshu

Hi Anshu,

 

Ye I tried onload script as well. I want to hide it from the form.

 

Rgds,
Shivani

I just created a demo API request to fill up some fields, set a UI policy , when "source" field is abc, title field visible=false.

It works when i open the record and form loads

find_real_file.png

When abc

find_real_file.png

When not abc

find_real_file.png

On form load, it works as i am not able to see the title field.

UI policy and onload script will work , when form is loaded manually.

I cannot understand which view you are mentioning.

 

 

Regards,
Anshu

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

is it a field or variable?

What script you tried? please share that

Regards
Ankur

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