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

    Do you support multi-sessions in a self-host WordPress site?

    Asked by juanmarcos on April 29, 2013 at 12:03 AM

    I have a long form that may take several days to complete. Is there anyway to submit the form multiple times?

    The user would keep adding data to the form until all the info was complete (multi-page form) and may submit the info several times in multi-sessions is it possible???

    One more thing the form will be in a self-host WordPress site. so I want to know how to use the "?session=$username" format cuase the clients will be sining on WordPress and not in JotForm site.

    Thanks

    Page URL:
    http://ideasandhardware.com/uhaul/u-haul-form/

    sessions site multi-page form JotForm style size
  • Profile Image
    JotForm Support

    Answered by EltonCris on April 29, 2013 at 01:29 AM

    @juanmarcos

    That might be possible. Try to use the following.

    <?php

    $user_id = get_current_user_id();

    ?>

    <script type="text/javascript" src="http://form.jotformpro.com/jsform/1234567890?session=<?php echo $user_id; ?>"></script>

    Make sure to replace your form URL. If that doesn't work, you can use the other one below.

    <?php global $user_email;

          get_currentuserinfo();

    ?>

    <script type="text/javascript" src="//form.jotformpro.com/jsform/1234567890?session=<?php echo $user_email; ?>"></script>

    For your reference: http://codex.wordpress.org/Function_Reference/get_currentuserinfo

    Thank you!