ServiceNow Developer Training - 3 | OnSubmit Catalog Client Script | Coding Demonstration

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024

Комментарии • 26

  • @sathishakumarakv8751
    @sathishakumarakv8751 3 года назад +2

    Thanks for such a pin to pin explanation of service now feature. I understand correctly.

  • @yashodharachakraborty3929
    @yashodharachakraborty3929 3 года назад +3

    Hats off to you sir. So brilliantly and in simple words you have explained almost every features in SNOW that a naive developer can also be able to understand this.Need more videos like this sir with some practical examples.

  • @sandhyanaresh2330
    @sandhyanaresh2330 Год назад +1

    3 sessions are very helpful ..Thank you for ur time and efforts

  • @madandatta4302
    @madandatta4302 3 года назад +2

    hai I'm from India your sessions are very helpful for our knowledge. so please continue and upload part 4 training fast

  • @arnabs2612
    @arnabs2612 3 года назад +2

    Keep up the good work... Thanks for the knowledge... Appreciated!!!

    • @arnabs2612
      @arnabs2612 3 года назад +1

      Dada, one thing... We should use the getUniqeValue() because if we do dom manipulation and try the same code for service portal, it will give the error...

  • @TheUkr1244
    @TheUkr1244 3 года назад

    Thanks for your efforts !!
    In-Service Portal getting submitted without attachment also.
    1. Alternate we have a checkbox in portal setting "Mandatory Attachment". on checking we cant submit without attachment.
    2. On the Hiding "Add Attachments" button using "Hide Attachment" checkbox in portal settings and on adding the new variable type "Attachment" and we can make it mandatory.

  • @Dolly24522
    @Dolly24522 Год назад +1

    I want to learn script in Servicenow . Please suggest me how can I learn?

  • @Jitenderkumar-qy6vb
    @Jitenderkumar-qy6vb 3 года назад

    Thanks for sharing such videos which have practical examples. Could you also please upload further video on this, workflow and sla's.

  • @louisesterio9029
    @louisesterio9029 2 месяца назад

    Hi, This is a fantastic tutorial I am doing this on Washington and it is still very relevant.
    Can you share a link to the requirements excel document please? I cannot find int on your website.

  • @ashokdoddam6155
    @ashokdoddam6155 3 года назад +1

    Thankful to you 🙏

  • @ashagajjala9668
    @ashagajjala9668 3 года назад +1

    Hi, Could you please share the requirement regarding to this catalog item, it will be helpful for me.

  • @unzurshahid
    @unzurshahid 3 года назад +2

    Thanks for ur efforts.
    I have got following error while ordering this catalog item.
    onSubmit script error: TypeError:gel is not a function:
    function () {[native code]}
    Plz help.

    • @soumyaverma9965
      @soumyaverma9965 3 года назад

      have you unchecked the isolate script?

    • @harrykoch9997
      @harrykoch9997 3 года назад

      gel seems to be deprecated. google has some articles about this

  • @soumyaverma9965
    @soumyaverma9965 3 года назад

    Thank you Sir for such knowledgeable video. I wanted to ask that have you attached any particular file as attachment, because when I added a .txt file, the alert is getting popped up again and again for providing a Pass certification. Can you please help with that?

  • @nawalsingh9567
    @nawalsingh9567 2 года назад +1

    This will not working in portal...but working fine in native view

  • @DevakilakshmipriyaSama
    @DevakilakshmipriyaSama Год назад

    tried the same code or the validate attachment. while submitting the form its showing the error isNAN is not defined function() error

  • @ankitamehta857
    @ankitamehta857 3 года назад

    Can u please create more videos on next topics

  • @yasodamalla5043
    @yasodamalla5043 2 года назад

    Hi sir, i was tried same requirement and all code also good but every time when i am trying to submit order , facing attachment popup and not able to submit order..pls help me on this sir..

  • @shivaragiman
    @shivaragiman 3 года назад

    I have written same as you written, but for me triggering error "Error MessageonSubmit script error: TypeError: gel is not a function:
    function () { [native code] }". Please suggest how to clear the error

    • @jktn1620
      @jktn1620 2 года назад

      Hi...
      In place of this function -> var catalogsysid= gel('sysparm_item_guid').value; so you can use this below function in client script i.e var catalogsysid = 'sysparm_item_guid'.value; then you won't get any error

  • @davejohnson392
    @davejohnson392 3 года назад

    I am getting an error when I DO have an attachment:
    Here is a copy of the Catalog Client Script:
    function onSubmit() {
    //Validate that an attachment has been attached
    var catalogSysID = gel('sysparm_item_guid').value;
    var checkAttachmentGA = new GlideAjax('CheckAttachment');
    checkAttachmentGA.addParam('sysparm_name', 'attachmentCount');
    checkAttachmentGA.addParam('sysparm_catalogsysid', catalogSysID);
    checkAttachmentGA.getXMLWait();
    var attCount = checkAttachmentGA.getAnswer();
    if (attCount < 1){
    alert('Please attach your passed Certification');
    return false;
    } else {
    return true;
    }
    }
    Anybody see I typo I am missing?
    The code works if I Don't have an attachment so this is really strange.

    • @SaudAhmed-jp5ic
      @SaudAhmed-jp5ic Год назад

      The error you are getting is because the gel() function is not available in Service Portal. This function is used in the classic UI, but it has been deprecated in favor of the g_form.getElement() function.
      To fix the error, you can update the code to use the g_form.getElement() function instead of the gel() function. The following code shows the updated code:

  • @ITEngineerNiyati
    @ITEngineerNiyati Год назад

    If any applicable to help them pls give me solution to fix this code