How to update session variables from client side ?

ruthrav
Mega Guru

Hello All,

I have an issue with the session variables on updating it from the client side.

The scenario is, i am having an display business rule on a table where i am setting a session variable initially. The same session variable is used in an on-submit client script for showing a GlideModalForm and restricting the submit of the current form. On submission of GlideModalForm i am trying to update the value in the same session variable by doing a glideAjax and submit the current form. The value in the session variable is not getting updated and it is always restricting the current form submission.

 

Any solution or suggestion for updating the session variable from client side will help..

 

Thanks in advance,

Ruthra.V

2 REPLIES 2

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Hi Ruthra,

I dont think you can set the values like you want. First solution, is it possible for you do do this with a before BR instead of a onSubmit CS? Since then you could avoid all this trouble and skip the display BR since you won't need that.

//Göran

Hello Goran,

We will not be able to use a before business rule because we have to show a form using GlideModalForm which can be done via a client script only.

 

Any other solution or suggestion will be helpful.

 

Thanks,

Ruthra.V