Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Reload the form

rahul0602
Kilo Contributor

How can I reload the form whenever one field value changes??

I have a dummy field, which changes value according to the approval(when approved the value is 1, when rejected 2). Now, I want the form to be reloaded implicitly every time that dummy field value changes.

3 REPLIES 3

souren0071
Tera Expert

Hi Rishi,



I feel the dummy field is being changed from the server side code. so when do you want it to be refreshed?


mainly the below statement is used to reload a form.



reloadWindow(window);



Please refer to this post for more informations.


https://www.servicenowguru.com/scripting/client-scripts-scripting/reload-form-related-list-client-sc...



Regards,


Souren


Rajesh Mushke
Mega Sage

Hello Rishi,



You can create a OnChange client script and change the field value based on the input of other fields.


http://wiki.servicenow.com/index.php?title=Client_Scripts




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

hvrdhn88
Giga Patron

Hi Rishi,



try with location.reload()



Location reload() Method