#2 OnLoad Client Script in ServiceNow | Client Scripts in ServiceNow

Поділитися
Вставка
  • Опубліковано 11 лют 2025

КОМЕНТАРІ •

  • @ramanareddy8999
    @ramanareddy8999 3 роки тому +2

    Thank you so much I had understood a lot of concepts by watching your videos

  • @moeiz7869
    @moeiz7869 Рік тому

    Thank you so much for this video it helped me getting started with client script..

  • @RESHMAKAKARLA
    @RESHMAKAKARLA Рік тому

    thanq so much sir this video's or more use for all keep posting

  • @hangtran652
    @hangtran652 3 роки тому

    you're so funny, thank for sharing, so helpful for new dev like me!

  • @bhavnabarse7650
    @bhavnabarse7650 2 роки тому

    thank you so much sir.

  • @seyedmostafavi7410
    @seyedmostafavi7410 3 роки тому +1

    Hey i did not watch the whole Video, but how can i run a script after the form has loaded?

  • @syedarazvi7078
    @syedarazvi7078 4 роки тому +1

    when logged in user open form it should display the list of the incident created by logged in user. How can I achieve this?

    • @SAASWithServiceNow
      @SAASWithServiceNow  4 роки тому +1

      You mean in related list?

    • @syedarazvi7078
      @syedarazvi7078 4 роки тому

      @@SAASWithServiceNow In new created feild.... Sir...
      We have to display list of incidents in new created field when logged in user open incident form?

    • @SAASWithServiceNow
      @SAASWithServiceNow  4 роки тому +3

      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.

    • @syedarazvi7078
      @syedarazvi7078 4 роки тому

      @@SAASWithServiceNow thank u.. Sir...
      I will try to implement it...

    • @tejaswigummadala7203
      @tejaswigummadala7203 3 роки тому

      @@syedarazvi7078 Hi can u please share the code...

  • @sandeepmedidi-v1d
    @sandeepmedidi-v1d Рік тому

    sir do videos on HRSD will be use full people poor like me

  • @forpersonaluse5770
    @forpersonaluse5770 2 роки тому

    can you please show 3rd use case

  • @pinkkitchen3859
    @pinkkitchen3859 2 роки тому

    The code for P1 alert is not working , msg is coming for all the tickets

    • @abhijeet3184
      @abhijeet3184 2 роки тому

      can u paste the code here, so i can see whats wrong in it

    • @naveenreddy7763
      @naveenreddy7763 2 роки тому

      Yes

    • @naveenreddy7763
      @naveenreddy7763 2 роки тому

      @@abhijeet3184 I have tried with same code which is explained in this video ,but its coming for all incidents

    • @anenthusiast9080
      @anenthusiast9080 11 місяців тому

      If you can share your script It can be checked, because I can make this work on my end. Thanks

    • @omkarhasbe8024
      @omkarhasbe8024 10 місяців тому

      @@naveenreddy7763 Try this --
      function onLoad() {
      if(g_form.getValue('priority') == '1') {
      alert("This is P1 Incident");
      }
      }

  • @shahrukhfaruki1876
    @shahrukhfaruki1876 3 роки тому

    What is that g_form?

    • @prasantisahu5937
      @prasantisahu5937 3 роки тому

      GlideForm .It is a method basically used in client-side .