Jquery conflict with JotForm - AdobeSign widget.

  • drsmart
    Asked on February 26, 2018 at 6:40 PM

    I am having a conflict with a Jquery script that runs a datepicker control on my form.  After reading other support pages, one (https://www.jotform.com/answers/788991-jquery-and-jotform-conflict) suggested using  https://api.jquery.com/jquery.noconflict/

    When I go to this page, it says to insert the "No Conflict" call before the code of the other (Non-Jquery) script.

    <script src="other_lib.js"></script>
    <script src="jquery.js"></script>
    <script>
    $.noConflict();
    // Code that uses other library's $ can follow here.
    </script>
     
    The Jotform AdobeSign Widget references the script
    <script type="text/javascript"
    src="https://data-widgets.jotform.io/echoSign/min/scripts.min.js">
    </script>
     
    Is this script available in a normal (not minimized) form to be able to
    add the $.noConflict(); line to it?
  • Jan
    Replied on February 26, 2018 at 9:31 PM

    Yes, you can add the no conflict code below the jquery.js element. It should work on normal or minimized version.

    If you are still having issues, please provide the URL of the webpage where the form is embedded so that we can further investigate.

    Hope that helps. Thank you.

  • Foch smart
    Replied on February 27, 2018 at 2:00 PM

    Can you tell me where to find the adobe sign widget script in a “ normal” version?  (Similar to widgets.jotform.io/echoSign.js"> ?

  • Jan
    Replied on February 27, 2018 at 2:38 PM

    Unfortunately, I was not able to find the "normal" version of the script. Even if you download the full source code. Only the minified version is available. Here's an example:

    https://data-widgets.jotform.io/echoSign/min/scripts.min.js

    Thank you for your understanding.

  • drsmart
    Replied on March 1, 2018 at 7:55 AM

    hi.  I was able to insert the Jquery No-conflict code and it seems to almost be working as it should.  I have removed all the input controls except the Jquery datepciker and the Adobe Sign widget (https://www.smartsmiles.com/MedHxForm/Under18/TestForm_19_02-28-2018.html).

    After picking a date and signing the Adobe Sign widget, I "submit" the form.  The jotform response that gets emailed to me includes the date and the signature.  However, the "signed" pdf from Adobe that gets emailed to me does not include the date.

    Is there anyone at jotform who may be familiar with the script that runs the Adobe Sign widget?  I'd like to see what code tells the Sign widget which fields to include in the signed document.

  • aubreybourke
    Replied on March 1, 2018 at 9:46 AM

    Another way to avoid scripting conflicts is to simply embed your form using the iFrame method:

    Getting-the-Form-iFrame-Code


  • drsmart
    Replied on March 1, 2018 at 1:31 PM

    Thanks for your response.  I considered that approach but, for several reasons, I'd like to try to avoid using an iFrame.  If there was a way to have the date field (input from Jquery datepicker) included in the "signed" pdf document sent from Adobe Sign, that would be ideal.  Hoping someone may be able to help me understand the Adobe Sign widget code to make this work.

  • Richie JotForm Support
    Replied on March 1, 2018 at 2:23 PM

    Unfortunately, I'm not familiar with the Adobe sign Widget codes.

    I checked the minified version https://data-widgets.jotform.io/echoSign/min/scripts.min.js but can't seem to get the code.

    As what my colleague has suggested, using the IFrame method would avoid conflicts on the code.

    -Getting-the-Form-iFrame-Code

  • drsmart
    Replied on March 1, 2018 at 10:19 PM

    I can imagine that no one tech support person could possibly be familiar with all JotForm widgets.  Would it be possible to refer me to a person (or department) that may be familiar with the Adobe Sign Widget codes?  Do I need to post the question to another thread, etc.?

  • BJoanna
    Replied on March 2, 2018 at 2:38 AM

    Unfortunately, this is out of our scope. Maybe you can find some additional info here: https://developers.jotform.com/widgets