Is it possible to allow submission of a form only to a list of known e-mail addresses? I could set up a logic jump but the question is can i as condition set a “list” of hundreds of e-mails? Also the logic jump would need a message as target (like “sorry this form is restricted to a list of e-mail addresses). If its not possible with logic jumps any other way?
Restrict submit of form to a list of e-mail addresses
Best answer by Francois Grenier
mmm interesting question
- add a couple of addresses in the logic builder
- get your form’s JSON description
- find the logic section where your list of email addresses is
- massage the JSON payload to add the logic for each additional email address
- update the form with the new payload from step 4.
in a simple form example, the logic section of the form payload (expecting to filter out emails as hidden fields) would look like this:
"logic": [
{
"type": "hidden",
"actions": [
{
"action": "jump",
"details": {
"to": {
"type": "field",
"value": "my_perfectly_readable_reference"
}
},
"condition": {
"op": "or",
"vars": [
{
"op": "equal",
"vars": [
{
"type": "hidden",
"value": "email"
},
{
"type": "constant",
"value": "user1@user.com"
}
]
},
{
"op": "equal",
"vars": [
{
"type": "hidden",
"value": "email"
},
{
"type": "constant",
"value": "user2@user.com"
}
]
}
]
}
},
{
"action": "jump",
"details": {
"to": {
"type": "field",
"value": "my_other_question_reference"
}
},
"condition": {
"op": "always",
"vars": []
}
}
]
}
],
You “just” have to repeat an “op”: “equal” block for each new email address with a quick script.
A more polished solution
Let us know what you try and how it goes.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.