How to set a unique question?

  • Shell_TFC
    Asked on May 29, 2023 at 1:25 AM
    how can I have unique question option?
  • Christy JotForm Support
    Replied on May 29, 2023 at 1:40 AM

    Hi Shell_TFC,

    This is in response to the question you raised here. I believe that you are referring to this form. Since the Date Reservation field in your form is a Single Choice element, you cannot use it as a Unique Field or a Unique Question; however, you can achieve your requirement by adding a Short Text element and passing the data from the Date Reservation and the Staff Name to Unique Field (Short Text element) by using an update/calculate field condition in your form.

    Let me show you how it's done.

    1. In the Form Builder, click on +Add Form Elements and go to the Basic Tab.
    2. Drag and drop a Short Text element into the form.
    3. Click on the Gear icon to open the Properties.
    4. Under the Advanced tab, scroll down and set the field to hidden.

    How to set a unique question? Image 1 Screenshot 50

    Once done, set the following condition to combine the Staff Name and Date Reservation by choosing the update/calculate field condition. Let me walk you through it:

    • In the navigation bar at the top of the screen, click on Settings.
    • In the list that appears, click on Conditions.
    • Select the Update/Calculate Field from the options.
    • Set the trigger and action by copying the conditions below (please make sure to change the strings from 0-9 to A-Z.

    How to set a unique question? Image 2 Screenshot 61

    • Click on Save.

    Finally set the Unique Field (Short Text) in the form settings.

    How to set a unique question? Image 3 Screenshot 72

    Check out the screencast below to see my results:

    How to set a unique question? Image 4 Screenshot 83

    Give it a try and let us know if you need more help.

  • Shell_TFC
    Replied on May 29, 2023 at 3:51 AM

    how will they know that I deny their booking reservation?

  • Mary_Ed JotForm Support
    Replied on May 29, 2023 at 4:17 AM

    Hello Shell_TFC,

    Thanks for getting back to us. Your user will be prompted with an error if they submit duplicate data from the same field. This is an error message that will be displayed. 

    How to set a unique question? Image 1 Screenshot 20

    We also have a guide about How to Set Form Limits Based on a Unique Field that you can check out.

    Reach out again if there’s anything else we can help you with.

  • Shell_TFC
    Replied on May 29, 2023 at 5:43 AM

    how will they know that I deny their booking reservation? not duplicate. How they will notify if I deny their booking

  • Mahmoud JotForm Support
    Replied on May 29, 2023 at 6:16 AM

    Hello Shell_TFC,

    Thanks for getting back to us. You can Change The Form Warning message to your preference. Let me show you how:

    1. In Form Builder, in the orange navigation bar at the top of the page, click on Settings and then click on Show More Options.
    2. Click on the Edit button next to Form Warnings.
    3. Search for the message you want to change then edit it.
    4. Click on the Save Changes button.

    Checkout the following screencast for the steps and the end result:

    How to set a unique question? Image 1 Screenshot 20

    Let us know if you have any other questions.

  • Shell_TFC
    Replied on May 29, 2023 at 9:55 PM

    Hi why the staff received the "sorry! Only one entry is allowed." even though it's their first time to book a slot?
    How to set a unique question? Image 1 Screenshot 20

  • Christy JotForm Support
    Replied on May 29, 2023 at 10:25 PM

    Hi Shell_TFC,

    Thank you for getting back to us. I am sorry that your user is unable to submit the form on the first attempt. Does it happen to all the users or just to a specific user?

    I checked your form and although you have not set up the Unique Field, the Unique Submission is currently set to Check Cookies Only. When you choose this option, the form will check whether the submission came from the same browser. It uses cookies stored in the user’s browser storage to verify duplicate submissions.

    How to set a unique question? Image 1 Screenshot 20

    As advised, you can follow the steps I shared earlier on this thread to combine the Reservation Date and Staff Name and then set the Unique Submission to No Check.

    Give it a try and let us know if you need more help.