<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Im trying to create a Signature Pad for Mobile View in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/1766378#M423304</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;For that i have created UI action on custom table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 14pt;"&gt;and triggered UI Page "&lt;STRONG&gt;wo_accept_signature_mobile&lt;/STRONG&gt;" but im unable to understand the process flow of this UI Page&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 14pt;"&gt;and onClick of UI Page Button &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;"&amp;lt;button id='acceptSignature' &lt;STRONG&gt;onclick="return onAcceptSignature();"&lt;/STRONG&gt; class="btn btn-primary"&amp;gt;${gs.getMessage('Accept')}&amp;lt;/button&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;there is Function &lt;STRONG&gt;"return onAcceptSignature();" &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;im unable to understand the execution of this function where it is located.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;So please can anybody help me understand how does this work?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2017 13:25:34 GMT</pubDate>
    <dc:creator>Nitesh A</dc:creator>
    <dc:date>2017-10-25T13:25:34Z</dc:date>
    <item>
      <title>Im trying to create a Signature Pad for Mobile View</title>
      <link>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/1766378#M423304</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;For that i have created UI action on custom table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 14pt;"&gt;and triggered UI Page "&lt;STRONG&gt;wo_accept_signature_mobile&lt;/STRONG&gt;" but im unable to understand the process flow of this UI Page&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 14pt;"&gt;and onClick of UI Page Button &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;"&amp;lt;button id='acceptSignature' &lt;STRONG&gt;onclick="return onAcceptSignature();"&lt;/STRONG&gt; class="btn btn-primary"&amp;gt;${gs.getMessage('Accept')}&amp;lt;/button&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;there is Function &lt;STRONG&gt;"return onAcceptSignature();" &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;im unable to understand the execution of this function where it is located.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;So please can anybody help me understand how does this work?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 13:25:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/1766378#M423304</guid>
      <dc:creator>Nitesh A</dc:creator>
      <dc:date>2017-10-25T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Im trying to create a Signature Pad for Mobile View</title>
      <link>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/1766379#M423305</link>
      <description>&lt;P&gt;Nitesh, were you able to find where this function&amp;nbsp;onAcceptSignature() is located. We're also struggling with the same. Many thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 20:15:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/1766379#M423305</guid>
      <dc:creator>NEO ANDERSON</dc:creator>
      <dc:date>2018-07-24T20:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Im trying to create a Signature Pad for Mobile View</title>
      <link>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/1766380#M423306</link>
      <description>&lt;P&gt;I know this is a very old post but I was desperately trying to find the same thing and I finally did, I'm hoping this helps someone in the future. The function but can be seen in:&lt;/P&gt;
&lt;P&gt;https://&amp;lt;instance_name&amp;gt;.service-now.com/scripts/wo_signature_pad.jsx&lt;/P&gt;
&lt;P&gt;and looks like:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;function onAcceptSignature() {
    var sigPad = $j('.sigPad').signaturePad();
    var ajax = new GlideAjax('com.snc.signaturepad.SignatureProcessor');
    var isImage = gel('sysparm_draw_only') &amp;amp;&amp;amp; gel('sysparm_draw_only').value == 'true' || $j('.drawIt').hasClass("active");
    var isSigneeNameReq = gel('sysparm_signeename_required') &amp;amp;&amp;amp; gel('sysparm_signeename_required').value == 'true' &amp;amp;&amp;amp; gel('signee_name') &amp;amp;&amp;amp; gel('signee_name').value &amp;amp;&amp;amp; gel('signee_name').value != '';
    if (isSigneeNameReq) {
        var signee_name = gel('signee_name').value.replace(/^\s+|\s+$/g, '');
        isSigneeNameReq = isSigneeNameReq &amp;amp;&amp;amp; signee_name != '';
    }
    var submit = true;
    var tableName = '';
    if (gel('table_name') &amp;amp;&amp;amp; gel('table_name').value)
        tableName = gel('table_name').value;
    var documentId = '';
    if (gel('document_id') &amp;amp;&amp;amp; gel('document_id').value)
        documentId = gel('document_id').value;
    if (isImage) {
        clearErrors();
        if (sigPad.getSignature().length &amp;gt; 0 &amp;amp;&amp;amp; isSigneeNameReq) {
            gel('acceptSignature').disabled = true;
            gel('cancelSignature').disabled = true;
            var png = sigPad.getSignatureImage();
            var signed_name = gel('signee_name').value;
            var params = {
                'action': 'acceptSignatureImage',
                'table': tableName,
                'document': documentId,
                'image': png,
                'data': sigPad.getSignatureString(),
                'signed_name': signed_name
            };
            ajax.getXML(acceptSignatureCallBack, params);
        } else {
            onFormDrawError();
            submit = false;
        }
    } else if (!isImage) {
        if (sigPad.validateForm()) {
            var signed_name = $j('.signed_name').val();
            var parameters = {
                'action': 'acceptSignatureName',
                'table': tableName,
                'document': documentId,
                'signed_name': '&amp;lt;p&amp;gt;&amp;lt;font size="7" face="journal"&amp;gt;' + signed_name + '&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;'
            };
            ajax.getXML(acceptSignatureCallBack, parameters);
        } else
            submit = false;
    }
    doSubmit(submit);
    return false;
}
function acceptSignatureCallBack(response) {
    var answer = response.responseXML &amp;amp;&amp;amp; response.responseXML.firstChild.textContent;
    var gf = new GlideForm();
    if (answer == "Signature accepted") {
        $j('#acceptSignature').closest('form').submit();
    }
    else
        gf.addErrorMessage("There was an error with the processing of the signature");
}
function onCancelSignature() {
    doSubmit(false);
    return false;
}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Dec 2021 10:07:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/1766380#M423306</guid>
      <dc:creator>Tom C1</dc:creator>
      <dc:date>2021-12-03T10:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Im trying to create a Signature Pad for Mobile View</title>
      <link>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/3071163#M1152075</link>
      <description>&lt;P&gt;Hey Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to similarly implement a signature pad in our mobile app, and just came across your post! Looks very helpful! Can you please elaborate how you implemented this? I tried to access&amp;nbsp;&lt;SPAN&gt;scripts/wo_signature_pad.jsx but was met with an error message.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 19:50:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/3071163#M1152075</guid>
      <dc:creator>JW22</dc:creator>
      <dc:date>2024-10-10T19:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Im trying to create a Signature Pad for Mobile View</title>
      <link>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/3071454#M1152168</link>
      <description>&lt;P&gt;&lt;SPAN&gt;wo_signature_pad.jsx comes with the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Field Service - Signature Pad&lt;/STRONG&gt; [com.snc.wo_signature_pad] plugin&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 08:22:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/3071454#M1152168</guid>
      <dc:creator>Tom C1</dc:creator>
      <dc:date>2024-10-11T08:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Im trying to create a Signature Pad for Mobile View</title>
      <link>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/3072088#M1152325</link>
      <description>&lt;P&gt;Thanks Tom, that's helpful! Did you customize anything else that you could share on how you implemented this signature pad? We're looking to use this with case management through the mobile app.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 20:57:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/3072088#M1152325</guid>
      <dc:creator>JW22</dc:creator>
      <dc:date>2024-10-11T20:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Im trying to create a Signature Pad for Mobile View</title>
      <link>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/3072722#M1152493</link>
      <description>&lt;P&gt;I don't have access to the environment I did the work on anymore and I can't remember what we built, sorry about that.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 07:39:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/im-trying-to-create-a-signature-pad-for-mobile-view/m-p/3072722#M1152493</guid>
      <dc:creator>Tom C1</dc:creator>
      <dc:date>2024-10-14T07:39:16Z</dc:date>
    </item>
  </channel>
</rss>

