Make SOW page read-only

preethigovi
Tera Contributor

Hi Team,

I want sow page for HRC to be read-only. How we can make form on workspace read only and UI Actions to be freeze? Like entire page  must be read-only.

 

preethigovi_1-1738299805106.png

 

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@preethigovi 

why not use table.None WRITE ACL and make the fields readonly?

Also ensure proper conditions are given in UI action so that they are shown only when they are meant to be shown.

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

@preethigovi 

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

This is affecting from users to add comment from portal side.

Community Alums
Not applicable

Hi @preethigovi ,

Can you try with following client script:

(function() {
  var uiActions = g_form.getActions();
  uiActions.forEach(function(action) {
  g_form.setActionVisible(action, false); 
  g_form.setActionEnabled(action, false); 
});

 

  var fields = g_form.getFields();

  fields.forEach(function(field) {

  g_form.setDisabled(field, true); 

});

}

})();