Random recipients? Is this possible?

  • Profile Image
    Asked 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
    Answered 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