UI policy is not working as expected in Platform View

Ramyav
Tera Contributor

I have created a new service catalog item with many variables. Additionally, I've implemented a UI policy to hide the 'vendor contact' and 'vendor contact not listed' variables when the vendor field is empty. However, these variables remain visible on the form every time it loads in Platform view but the UI policy is functioning correctly on the service portal

 

Additionally, Additionally, there is an issue where the Submit button is not visible on the platform view, and even though 'Add to cart', 'Quantity', and 'Hide delivery time' are checked to be hidden, they are still showing. Although it is working properly on the service portal.

6 REPLIES 6

nataliya_b
Tera Guru

How do you set those variables hidden - via script?

if yes, than script type shall be all

No, via UI policy action

 

Nipan1
Tera Contributor

Hi @Ramyav,

 

Try writing an onLoad client script to hide the fields you want when the form loads and give a condition: "if(vendor == null)". And keep the UI policy you wrote as it is.

 

 

 

Ramyav
Tera Contributor

I tried it, but still vendor contact and vendor contact not listed is visible