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

    Normal Captcha on my own server isn't working correctly

    Asked by Mark  on April 25, 2014 at 03:31 PM

    Doing some looking I have found four spots where the JotForm is getting the captcha for the forms. The thing is that the forms are on a private server and the Capchas never load because they are trying to grab them from the JotForm site as opposed to the private server. We purchased Jotforms and this is the one of the issues we are having.

    The JotForm.url variable I noticed is suppsed to be grabbing my private server url but it doesn't seem to be doing that. It does however do it for this function which is weird:

    reloadCaptcha: function(id){
            $(id + '_captcha').src = JotForm.url+'images/blank.gif';

    I can see that it is doing the correct url through FireBug.

    This is a dump of my search:

    Searching 1265 files for "server.php?action=getCaptchaImg&code"

     1344                  t = t.responseJSON || t;
     1345                  if (t.success) {
     1346:                     $(id + '_captcha').src = JotForm.url + 'server.php?action=getCaptchaImg&code=' + t.num;
     1347                      $(id + '_captcha_id').value = t.num;
     1348                  }

     1519                  t = t.responseJSON || t;
     1520                  if (t.success) {
     1521:                     $(id + '_captcha').src = JotForm.url + 'server.php?action=getCaptchaImg&code=' + t.num;
     1522                      $(id + '_captcha_id').value = t.num;
     1523                  }

      924                  t = t.responseJSON || t;
      925                  if (t.success) {
      926:                     $(id + '_captcha').src = JotForm.url + 'server.php?action=getCaptchaImg&code=' + t.num;
      927                      $(id + '_captcha_id').value = t.num;
      928                  }

      997  $(field).observe(event,function(){$A(conds).each(function(cond){var idf=field.replace(/.*_(\d+)/gim,'$1');JotForm.warn('Checking '+$('label_'+idf).innerHTML.strip(),", Field Type: "+JotForm.getInputType(idf));JotForm.checkCondition(cond);});}).run(event);});}catch(e){JotForm.error(e);}},countTotal:function(prices){var total=0;$H(prices).each(function(pair){total=parseFloat(total);var price=parseFloat(pair.value.price);if($(pair.key).checked){if($(pair.value.quantityField)){price=price*parseInt($(pair.value.quantityField).getSelected().text,10);}
      998  total+=price;}});if(total===0){total="0.00";}
      999: if($("payment_total")){$("payment_total").update(parseFloat(total).toFixed(2))}},totalCounter:function(prices){$H(prices).each(function(pair){$(pair.key).observe('click',function(){JotForm.countTotal(prices);});if($(pair.value.quantityField)){$(pair.value.quantityField).observe('change',function(){$(pair.key).checked=true;JotForm.countTotal(prices);});}});},initCaptcha:function(id){new Ajax.Jsonp(JotForm.server,{parameters:{action:'getCaptchaId'},evalJSON:'force',onComplete:function(t){t=t.responseJSON||t;if(t.success){$(id+'_captcha').src=JotForm.url+'server.php?action=getCaptchaImg&code='+t.num;$(id+'_captcha_id').value=t.num;}}});},reloadCaptcha:function(id){$(id+'_captcha').src=JotForm.url+'images/blank.gif';JotForm.initCaptcha(id);},addZeros:function(n,totalDigits){n=n.toString();var pd='';if(totalDigits>n.length){for(i=0;i<(totalDigits-n.length);i++){pd+='0';}}
     1000  return pd+n.toString();},formatDate:function(d){var date=d.date;var month=JotForm.addZeros(date.getMonth()+1,2);var day=JotForm.addZeros(date.getDate(),2);var year=date.getYear()<1000?date.getYear()+1900:date.getYear();var hour=JotForm.addZeros(date.getHours(),2);var min=JotForm.addZeros(date.getMinutes(),2);var id=d.dateField.id.replace(/\w+\_/gim,'');$('month_'+id).value=month;$('day_'+id).value=day;$('year_'+id).value=year;if($('hour_'+id)){if($('ampm_'+id)){var ap='AM';if(hour>11){ap="PM";}
     1001  if(hour>12){hour=hour-12;}

  • Profile Image
    JotForm Support

    Answered by TitusN on April 25, 2014 at 04:08 PM


    Please send an email to support@interlogy.com for Jotform Standalone (self hosted) support requests to get the requisite support.