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

    Login to Jotform with Casperjs/Jquery

    Asked by tfn on May 13, 2014 at 12:20 PM

    I am having an impossible time just trying to simply login to the website to pull submissions with a script that i made. I have tried using casperjs fill(), sendKeys(), as well as jquery to set val of the selector and then perform a simple login button click. But no matter what i try which all work for logging into different websites it wont let me login to jotform. Is something blocking script logins? Here is my sample code.


    var casper = require('casper').create({

    pageSettings: {

            webSecurityEnabled: false



    var x = require('casper').selectXPath;

    var base_url = 'http://www.jotform.com/myforms/';

    var login_url = 'http://www.jotform.com/login'

    var delay = 2000;

    casper.userAgent("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11");



    casper.then(function() { 

    this.sendKeys('#username', 'example');

    this.sendKeys('#password', 'password');



    casper.thenClick(x('//*[@id="loginButton"]'), function() {

    this.wait(delay, function() {});



    casper.thenOpen('http://www.jotform.com/submissions/41147560839964', function() {

    this.wait(delay, function() {});




    casper.thenOpen(base_url + 'logout.php', function() {

        this.log("logging out", 'debug');



    casper.run(function() {



  • Profile Image
    JotForm Support

    Answered by TitusN on May 13, 2014 at 02:53 PM

    Yes - you might be experiencing our security safegurards - 

    Please review our api documentation on how you can implement authentication.

    Let us know if that helps.

  • Profile Image
    JotForm Support

    Answered by TitusN on May 13, 2014 at 02:56 PM


    I have also notified our developers so that they can offer further advice.


  • Profile Image
    JotForm Founder

    Answered by aytekin on May 14, 2014 at 07:55 AM

    You should really be using our API for this:



    If you need to do it on JavaScript we have a JavaScript library to make things easier here: