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

    Grab WordPress username and populate it to the form

    Asked by JohnReaves on June 19, 2014 at 03:04 PM

    Original thread http://www.jotform.com/answers/357275

    This is exactly something I need to do.  Hopefully this thread is still active; I'll try to implement this over the next week or so.  Thanks!

    wordpress get username wp wp user
  • Profile Image
    JotForm Support

    Answered by EltonCris on June 19, 2014 at 03:04 PM

    The workaround is still fresh and working. :)

    If you come across any issues, feel free to let us know here.

    Regards!

  • Profile Image

    Answered by JohnReaves on June 25, 2014 at 07:30 PM

    Thanks, got it up and running ... works great!

  • Profile Image

    Answered by RickScavetta on August 30, 2014 at 08:43 AM

    This is wonderful. I got this working for one field. Can you give an example of how we can auto-fill multiple fields in this way?

    Thanks!!

     

    example:

     

    <script type="text/javascript" src="//form.jotformeu.com/jsform/XXXXXXX?username=[insert_php] global $current_user; get_currentuserinfo(); echo $current_user->user_login;[/insert_php]"></script>

    works great. The following does not (I tried to combine with &):

    <script type="text/javascript" src="//form.jotformeu.com/jsform/XXXXXXX?username=[insert_php] global $current_user; get_currentuserinfo(); echo $current_user->user_login;[/insert_php]emailAddress=[insert_php]&global $current_user; get_currentuserinfo(); echo $current_user->user_email;[/insert_php]"></script>

     

     

     

  • Profile Image

    Answered by RickScavetta on August 30, 2014 at 08:52 AM

    oh, forget about that. the & was in the wrong position. Everything fixed now.