This is not quite right approach as showing multiple incidents in a field not good and also not user friendly. Related list is best way to display all incidents associated with logged in user. Even if you want to achieve then you can create a text field if you just want to show number . You can write a client script and use glide ajax. You can query all incident records created by him and place all record numbers in a string like var incidents += gr.number + ", "; this way all incidents will captured in a string and you can return same variable to client script and populate in that new field.
Thank you so much I had understood a lot of concepts by watching your videos
Glad to hear that
Thank you so much for this video it helped me getting started with client script..
thanq so much sir this video's or more use for all keep posting
Hey i did not watch the whole Video, but how can i run a script after the form has loaded?
you're so funny, thank for sharing, so helpful for new dev like me!
thank you so much sir.
when logged in user open form it should display the list of the incident created by logged in user. How can I achieve this?
You mean in related list?
@@SAASWithServiceNow In new created feild.... Sir...
We have to display list of incidents in new created field when logged in user open incident form?
This is not quite right approach as showing multiple incidents in a field not good and also not user friendly. Related list is best way to display all incidents associated with logged in user. Even if you want to achieve then you can create a text field if you just want to show number . You can write a client script and use glide ajax. You can query all incident records created by him and place all record numbers in a string like var incidents += gr.number + ", "; this way all incidents will captured in a string and you can return same variable to client script and populate in that new field.
@@SAASWithServiceNow thank u.. Sir...
I will try to implement it...
@@syedarazvi7078 Hi can u please share the code...
sir do videos on HRSD will be use full people poor like me
can you please show 3rd use case
The code for P1 alert is not working , msg is coming for all the tickets
can u paste the code here, so i can see whats wrong in it
Yes
@@abhijeet3184 I have tried with same code which is explained in this video ,but its coming for all incidents
If you can share your script It can be checked, because I can make this work on my end. Thanks
@@naveenreddy7763 Try this --
function onLoad() {
if(g_form.getValue('priority') == '1') {
alert("This is P1 Incident");
}
}
What is that g_form?
GlideForm .It is a method basically used in client-side .