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:
1"logic": [2 {3 "type": "hidden",4 "actions": [5 {6 "action": "jump",7 "details": {8 "to": {9 "type": "field",10 "value": "my_perfectly_readable_reference"11 }12 },13 "condition": {14 "op": "or",15 "vars": [16 {17 "op": "equal",18 "vars": [19 {20 "type": "hidden",21 "value": "email"22 },23 {24 "type": "constant",25 "value": "user1@user.com"26 }27 ]28 },29 {30 "op": "equal",31 "vars": [32 {33 "type": "hidden",34 "value": "email"35 },36 {37 "type": "constant",38 "value": "user2@user.com"39 }40 ]41 }42 ]43 }44 },45 {46 "action": "jump",47 "details": {48 "to": {49 "type": "field",50 "value": "my_other_question_reference"51 }52 },53 "condition": {54 "op": "always",55 "vars": []56 }57 }58 ]59 }60 ],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.
