will jotform.forms.js conflits with jquery.min.js

  • roma_victa
    Asked on June 23, 2014 at 4:25 AM

    The reason why i am asking is that i am trying to add a model dialog box. 
    But as soon as i add a new .js file and run it gives me an javascript runtime error.

    and is there any built in feature to add model dialog box with the theme selected in jotform?

  • NeilVicente
    Replied on June 23, 2014 at 5:19 AM

    Where is the form embedded? Normally, script conflicts can be avoided by embedding the form using the iframe embed option.

    and is there any built in feature to add model dialog box with the theme selected in jotform?

    I am not exactly sure what you mean by this. Can you expound further?

  • roma_victa
    Replied on June 23, 2014 at 5:55 AM

    I have added the .js file of the forms directly to my website and added reference to it

    <script src="prototype.forms.js" type="text/javascript"></script>

    <script src="jotform.forms.js" type="text/javascript"></script>

    and i made some of the controls as server side as i need to do a lot of coding in the server side.

     

    The second point is that i need to add the a dialog box  and i was just wondering if you have any built-in functionality in your form maker that i can use.

  • Ashwin JotForm Support
    Replied on June 23, 2014 at 6:41 AM

    Hello roma_victa,

    You haven't share your web page URL where you have embedded your form and having this issue. Please share your web page URL and we will take a look. You may also like to share a screenshot of the problem so that we can understand your issue better. The following guide should help you upload screenshot in your forum post:  http://www.jotform.com/answers/277033

    On your question related to modal dialog box: I am not sure if I have understood your requirement correctly. Do you want to actually open your form in a modal window? You may like to take a look at our Lightbox embed code. Following guide should help you:  http://www.jotform.com/help/220-How-to-Create-a-Lightbox-Form

    We will wait for your response.

    Thank you!

  • roma_victa
    Replied on June 23, 2014 at 8:36 AM

    Thank you for the Replay Ashwin. the second option look good to me. Here is what i need i designed a form as below

     http://www.jotform.com/?formID=41662870410450 

     

    Brilliant i can use the second way to get it done. only can you tell me how to get the values from the textbox i cant see any textbox or any controls form below since its hosted some where else.

     <script src="//max.jotfor.ms/static/feedback2.js?3.2.2371" type="text/javascript">

         new JotformFeedback({

             formId: '41662870410450',

             base: 'http://jotform.me/',

             windowTitle: 'Upload Your Files',

             background: '#382C15',

             fontColor: '#FFFFFF',

             type: false,

             height: 300,

             width: 400

         });

    </script>

    <a class="lightbox-41662870410450" style="cursor:pointer;color:blue;text-decoration:underline;">

        <input id="Button1" type="button" value="button" /></a>

     

  • NeilVicente
    Replied on June 23, 2014 at 9:42 AM

    The lightbox solution offered by my colleague will only work for JotForm-hosted forms. The script calls the form from our server and loads it in a lightbox.

    Suffice to say, this solution will not work for you if you are using the form's full source code.

    Again, we would be grateful if you can share to us a URL where the form is embedded. If not yet live, kindly upload it somewhere so we can inspect your codes and find out what's causing the runtime error you were referring to on your original post.

    We would be very happy if you can help us help you.

    Thanks!

  • roma_victa
    Replied on June 23, 2014 at 9:49 AM

    Sure Neil, its not live yet and after seeing the ashwins solution i removed the dialog box and associated code. tried to associate  a sample light box to a button, Thinking if i can get values from the Text box in the lightbox to the server side for some processing then that will do.