How to restrict form submission based on whether user are authorized to complete the form?

  • bsobot
    Asked on March 27, 2019 at 7:56 AM

    Hello guys, 

    I am creating a very simple e-voting form for an association. My challenge is to make sure that only people with pre-generated voting codes can vote during the election. 

    I have about 200 unique codes generated. (I cannot use Email addresses because not everyone has an email). I started by creating a simple input value, where I check user input value against one of the codes. But this will mean that I have to enter this conditional logic 200 times to achieve this.

    Is there a way to achieve this without doing the conditional logic 200 times?

    Thanks for your help guys.


    b


  • Richie JotForm Support
    Replied on March 27, 2019 at 10:25 AM

    If possible, you may input your code in an excel file and use the Spreadsheet to form widget to populate the field when the code is present in your excel file.

    Guide:https://www.jotform.com/help/442-How-to-Use-the-Spreadsheet-to-Form-Widget

    You can add your unique code and a field to populate when the user inputs the correct code and use the show condition when that field is populated.

    Here is a sample form:https://form.jotform.com/90104383033950

    Please give it a try and let us know if this fits your requirements.