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

    Random recipients? Is this possible?

    Asked by StudioBe on October 07, 2013 at 06:26 PM

    Ok, dont ask me exactly why I want to do this but Im wondering if its at all possible to have a submitted form go to a random recipient? Like if I had a list of potentials the form just chooses one at random? Any work around on this woud be great! Thanks.

  • Profile Image
    JotForm Support

    Answered by ardy0689 on October 07, 2013 at 07:21 PM

    Hello, this is somewhat not yet designed or out of scope for JotForm but it can be done via jQuery or Javascript.

    But first you need to do something inside JotForm:

    1. You need to use a hidden field


    2. You need to map the hidden field id to the recepient.

    3. Compose a jQuery or Javascript that will target the value of the hidden field prior to loading the page. Then set a random email address from your list that are hard coded into the script.


    So whenever the form loads, your webpage will execute the script and randomly selects an email address and fills in the hidden textbox with a hidden value. During submission JotForm will fetch the hidden value and put it to the recipient as referenced from the ID you put earlier. This should definitely work.

    If you need further assistance. please do not hesitate to post your inquiries. Thank You