What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    About adding my own javascript function

    Asked by Jose Antonio  on February 17, 2015 at 04:49 AM

    Hello,

    I am trying to customize manually some functionality of the form I am creating in order to call my own php file using ajax / jquery function from a javascript function. 

    The problem is that it seems when I call the jquery.js file, it interferes somehow with your prototype.js file and then calculated fields does not work.

    Could you please tell me what is wrong in this process?. Please, find attached screenshot with the part of my added code and the javascript console in the browser.

    I appreciate your help.

    Thank You

    Best Regards,

    Jose Antonio

    Screenshot
    problem find does not work hello
  • Profile Image
    JotForm Support

    Answered by Charlie on February 17, 2015 at 09:01 AM

    Hi,

    May I know how you are using the Form? Are you embedding it on your web page using the default embed code? If that is the case, you can't combine or call scripts in that way. If you would like to edit functions or add your own scripts inside the form, you can do that if you embed the form's full source code, you can check this guide on how to get it: http://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form.

    Although, please do take note that any change you made in your form using the form builder won't reflect to your JotForm if you embed using the full source code, you'll need to re-embed and add the edits you made. 

    You can also share your full source code so that we can check it out, you can use http://pastebin.com/.

    Thank you.

  • Profile Image

    Answered by Jose Antonio  on February 18, 2015 at 04:07 AM

    Hi Charlie,

     

    Thank you for your help, I have been following deeper your Support Forum and found that the solution to jquery is related to use $.noConflict();

    Now it is working fine.

     

    Thank you

  • Profile Image
    JotForm Support

    Answered by Charlie on February 18, 2015 at 09:28 AM

    Hi,

    You're welcome, I'm glad that you have resolved the problem, there are a lot of threads in our forum that has different solutions on it, and it's actually a great way to explore and learn more about workarounds and fixes.

    If you needed any assistance again or have other concerns, please do not hesitate to contact us again.

    Thank you.