Service Catalog: check if editable catalog item variables were changed on the catalog task form

What if catalog variables become editable post-checkout on the catalog task?

here's how to check if the values changed between form load and form submit

display business rule:

store the 'onload' value of a 'delivery_date' variable in a scratchpad:

g_scratchpad.task_deliverydate=current.request_item.variables.delivery_date;

onsubmit client script:

check if this was changed by the user:


if (g_form.getValue("variables.delivery_date")!=g_scratchpad.task_deliverydate){
   
      //...
  
}  

Comments

Popular posts from this blog

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy

GlideRecord setValue