How can I use the contact form into master page in

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

  • Profile Image
    Answered 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 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:');" & _

               "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!!



  • Profile Image
    Answered 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?


  • Profile Image
    Answered 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 on September 19, 2013 at 10:26 PM