What considerations or changes if any are necessary for those using the

  • Profile Image
    BJ Berli
    Asked on February 21, 2012 at 02:21 PM

    What considerations or changes if any are necessary for those using the source code for a form? I notice references to jotform.com/uploads or .../images.

    Thanks.



    This is a re-post of a comment on How to use Custom Domains with Jotform

  • Profile Image
    fxr
    Answered on February 22, 2012 at 12:45 PM

    As you are are just configuring a DNS alias on your webserver pointing back at JotForm. The URLs used for uploads and images could just be edited to make use of your Custom Domain. 

    e,g changing an image link:

    <img alt="" class="form-image" border="0" src="//www.jotform.com/uploads/fxr/form_files/day1x25.jpg" height="512" 

    should be:

    <img alt="" class="form-image" border="0" src="//forms.my_custom_domain.com/uploads/fxr/form_files/day1x25.jpg" height="512" 

    You can also change your submit button action to point at your own domain:

    e.g 

    <form class="jotform-form" action="http://submit.jotform.com/submit.php" method="post" enctype="multipart/form-data" name="form_20522305058" id="20522305058" accept-charset="utf-8">

    to 

    <form class="jotform-form" action="http://forms. my_custom_domain.com/submit.php" method="post" enctype="multipart/form-data" name="form_20522305058" id="20522305058" accept-charset="utf-8">

     

    These changes arent absolutely necessary as when using either mycustomdomain.com or jotform.com, setting up the CNAME alias means that they are ultimately just pointing at the same location. 

    The one main benefit, however, is that it means you will have greater flexibility and control should you need to change where the forms on a webserver are pointing to. One small change in a DNS record and all forms on your webserver are updated to use that new location. 

     

    Hope that helps. Let us know if you need any further clarification on that. 

  • Profile Image
    berlibj
    Answered on February 23, 2012 at 04:18 PM

    Fabulous!  Very helpful.  Although I see the benefit you mention...thinking ahead to succession planning, I think I'll keep it simple.  Thanks much.

    Ciao