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.

Ui polices not working on Form Widget

anant5
Tera Contributor

I am using a cloned Form widget on the Portal and none of the UI policies which are present on the form are loading on the Form widget. I was looking in to the OOB server code present on the widget and I am not sure from where data.f.policy is populated. Need help to first understand how the ui policies are loaded on portal so that I am able to execute it. Thanks  

 

var policies = data.f.policy || []
	policies.forEach(function(policy, index){
    if (policy['is_ui_data_policy']) {
      policies[index].onload = true;
    }
  })

 

 

 

 

 

2 REPLIES 2

AnirudhKumar
Mega Sage

I don't understand. a cloned Form widget should run platform UI Policies too.

Did you clone the widget completely? i.e. including the Angular ng-templates, dependencies, etc

 

Yes, we did clone everything