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

    How can I use the contact form into master page in asp.net?

    Asked by shabnam_khani on March 13, 2013 at 03:47 PM

    hi there,

    i'm using contact form and i want to add the form in a master page and content place holder,every css style is ok,but the JS function doesn't work.

    what's the problem? 

    please help

    contact form ASP ASP.NET problem style content
  • Profile Image

    Answered by sidharth_kch on March 13, 2013 at 04:07 PM

    @ shabnam_khani

    You can use RegisterStartupScript and the RegisterClientScriptBlock methods to register client side javascript functions on your asp.net page codebehind. asdvbcvbcbvbc

    Add JotForm Javascripts / functions like this (this is a sample jotform JS function):

    Page.RegisterStartupScript("MyScript", &_

       "<script language=javascript>" & _

       "JotForm.init(function(){" & _

               "$('input_3').hint('ex: myname@example.com');" & _

               "productID = {'0':'input_5_1001','1':'input_5_1002','2':'input_5_1003','3':'input_5_1004'};" & _

               "JotForm.totalCounter({'input_5_1001':{'price':'2.50','quantityField':'input_5_quantity_1001_0'},'input_5_1002':{'price':'2.50','quantityField':'input_5_quantity_1002_0'},'input_5_1003':" & _{'price':'1'},'input_5_1004':{'price':'4'}});" & _

               "JotForm.initCaptcha('input_6'); });}</script>")

     

    Hope this helps!!

    Thanks,

    Sidharth

  • Profile Image

    Answered by shabnam_khani on March 14, 2013 at 03:22 AM

    thanks.but it still doesnt work,

    have to write a script like this?

    <Script runat="server">

    and here put the page load?

    </script>

  • Profile Image

    Answered by shabnam_khani on March 14, 2013 at 04:02 AM

    should i put the codes in the masterpage load or the current page load?

  • Profile Image

    Answered by dgfhgjhtg on September 19, 2013 at 10:26 PM

    hfhfhfhghggfjhgdhgsfAFsdggfhgdhghdfhgdjhgfdghgf