Service Catalog item can be edited after submitted

Karlie
Tera Contributor

I realized after a user orders a catalog item and checks out they can change their responses. After they checkout they can click on the item and basically fill it out again and hit update. This however does not update the workflow.

Has anyone else noticed this? Is there a way to stop them from editing it?

Thanks

2 REPLIES 2

oharel
Kilo Sage

Hi Karlie,



You can add an onLoad client script on the sc_req_item table:


function onLoad() {


  //Type appropriate comment here, and begin script below


  if(g_user.hasRole('admin')) {


  g_form.setVariablesReadOnly(false); //so admins can edit the variables


  } else {


  g_form.setVariablesReadOnly(true);


  }


}



harel


Please mark as correct or helpful based on impact


snehabinani26
Tera Guru

HI Karlie,



You can go ahead and make all the variables read-only by UI Policy. Mark UI policy to run on Requested item and catalog task in case you want variables to be shown there.



Hope this helps you.