About adding my own javascript function

  • Profile Image
    Jose Antonio 
    Asked 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

  • Profile Image
    Charlie
    Answered 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
    Jose Antonio 
    Answered 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
    Charlie
    Answered 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.