Skip to main content
How to disable the form conditionally?

I want to prevent the user from accessing the form if they've already submitted it before or a specific date has passed.

Updated over a week ago

You can set conditions on what records are accessible based on certain values in Airtable. For example, ensuring that users can only edit their records once or users can't edit the form when it “expires”. You can come up with your own rules that will disable the form when these conditions are not met. There are a few options to achieve this depending on your use case.

1. Prevent re-login after user submission

If the login page option is enabled, lock the form so they can't access it again.

  1. Form Settings

  2. Table & Login section

  3. Add a rule* to Only allow users to login if conditions are met

  4. Submission Actions section

  5. Turn OFF Keep users logged in after form submission

*Note: the condition should not be based on a linked record getting created (learn why).

2. Prevent loading the form

In this option, the user won't be able to open the form and it'll be completely blocked.

Option A

  1. Form Settings

  2. Disable Form section

  3. Turn on Allow users to view existing records toggle

  4. Turn on Only allow users to view existing records if conditions are met toggle

  5. Add Condition(s)

Option B

  1. Form Settings

  2. Disable Form section

  3. Turn on Allow users to view existing records toggle.

  4. Turn on Enable the ability to lock the form after submission toggle.

  5. Select a checkbox field for Field used for locking

The check box field will be checked after form submission so when the users try to reload the form, it will not be accessible.

Option C

  1. Form Settings

  2. Disable Form section

  3. Turn on Disable form at scheduled date toggle

  4. Set a date and time in Date at which the form will be disabled

Note: the expiration date and time used will follow the time zone of the admin.

3. Prevent saving the form

This option allows users to access the editing form but restricts submitting the form.

  1. Form Settings

  2. Disable Form section

  3. Turn on Enable saving records if conditions are met toggle

  4. Add Condition(s)

You can set a custom message if the condition is not met.

Related

Did this answer your question?