Super Forms
  • Drag & Drop Form Builder for WordPress
  • Quick start
    • Installation
    • Registration
    • Starting your 15 day trial
    • Purchasing a license
    • Activating a license
    • First time setup
    • Secure file uploads
    • Creating a form
    • Adding form elements
    • Editing elements
    • Publishing your form
    • FAQ
  • Account
    • Dashboard
      • Your Invoices
      • Billing details
      • Your Licenses
      • E-mail Notification
      • Password reset
      • Cancel subscription
  • Common problems
    • Common problems
      • Email delivery problems
        • Why is my form not sending emails?
        • Why are emails going into spam folder/inbox?
      • File upload problems
      • Session expired
      • reCaptcha Troubleshooting – Fix “Not Loading” & Verification Errors
  • Elements
    • Layout elements
      • Column/Grid
      • Multi-part / step
    • Form elements
      • Calculator
      • Signature
      • File upload
      • Datepicker
      • Variable field
      • Dropdown
      • Text field
      • Autosuggest
      • Keywords
      • Radio button
      • Keyword Field
      • Button
      • Audio Recording (microphone)
    • HTML elements
      • Heading
      • HTML (raw)
      • Image
      • TinyMCE
      • Divider
      • Spacer
      • PDF page break
      • Google map element WordPress form
  • Features
    • Basic
      • Confirmations emails
      • Save Form Progression (continue later)
      • Build In Translation System
      • Populate form
      • Popups
      • Import & Export
      • Hide form after submitting
      • Hide or lock out user from your forms
      • Validation
    • Advanced
      • WordPress form with Google sheets dropdown
      • Custom registration form for WordPress
      • Custom login form for WordPress
      • Custom lost password form for WordPress
      • Update current logged in user
      • Secrets
      • Prevent duplicate entries
      • Lock & hide form
      • Password protect
      • Conditional Logic
      • Tags system
      • Address lookup/auto complete
      • Analytics Tracking
      • Conversion Tracking
      • Distance & Duration Calculation
      • If statements
      • Foreach loops
      • E-mail Reminders
      • Variable Fields
      • Form templates - Include elements into other forms - WordPress
      • Transferring data from one form to another
    • Integrations
      • PDF Generator
      • Listings
      • WooCommerce Checkout
        • Fixed price checkout
        • Dynamic price checkout
        • Variable product checkout (variations)
        • Replacing the "Add to cart" on a product page with a form
        • Hiding product from shop and order via custom form
      • PayPal
      • MailChimp
      • Mailster
      • Zapier
      • Stripe (BETA)
      • WooCommerce Instant Order (in progress)
  • Tutorials
    • WordPress Form to Google Sheet Integration
    • GDPR Consent / Terms agreement
    • How to update the plugin
    • Sending emails to specific department for WordPress contact forms
  • Example Forms for WordPress
    • Booking 24 hours ahead of time
  • Developers
    • Code Examples
      • Lookup City by Zipcode for your WordPress form
      • Audio Recording Field
      • Custom API Phone Number Validation for Your WordPress Form
      • Updating WordPress user meta data after login
      • Automatically redirecting to next step after displaying text or a progress bar
      • Dropdown with groups (categories)
      • Prevent form submission based on entered field values
      • Track form submissions with GTM (Google Tag Manager)
      • Tracking Multi-part steps with Google Analytics
      • Tracking Multi-part steps with GTM data layer (dataLayer.push)
      • Track form submissions with third party
      • Compare input field value with database value
      • Insert form data into a custom database table
      • Delete database row after contact entry is deleted in WordPress
      • Limited date availability (slots) for your WordPress booking form
      • Send submitted form data to another site
      • Exclude empty fields from emails
      • Execute custom JS when a column becomes conditionally visible
      • Toolset Plugin: Update comma separated string to Array for meta data saved via Front-end Posting
      • Toolset Plugin: Update file ID to file URL for meta data saved via Front-end Posting
      • Delete uploaded files after email has been send
      • Increase Cookie lifetime for client data such as [Form Progression]
      • Altering cookie secure and httponly parameters
      • Define fake cronjob to clear old client data if cronjob is disabled on your server
      • Define page language attribute based on page ID or URL
      • Define custom headers when doing a POST request
      • Change checkbox/radio layout to vertical on mobile devices
      • Show remaining available form submission allowed
      • Global fields / elements
      • Trim values of fields
      • Re-sending E-mails after editing entries via Listings for WordPress
      • Combine multiple field values into one column on Contact Entries page
      • Altering the attachments for E-mails via PHP code for WordPress
      • Generate dynamic columns with dates based on user selected date from Datepicker element
      • Hide `eye` icon from Listings row based on user role
    • Data storage
    • BETA version
  • Changelog
  • Support
Powered by GitBook
On this page
  • Only allow logged in users to submit a form
  • Hide form from logged in users
  • Allow only specific user roles to submit the form
  • Hiding the form from locked out users
  • Display a message for the locked out user
  • Password protect a form
  1. Features
  2. Basic

Hide or lock out user from your forms

How to hide, password protect or lock out user from submitting a WordPress form.

PreviousHide form after submittingNextValidation

Last updated 1 year ago

If you are looking for a way to prevent duplicate entries read instead. If you want to lock a form after specific amount of submissions read . And if you are looking for a way to password protect a form read . And in case you want to just hide the form after it was successfully submitted by the user read .

In this article we will explain what different option you have in regards to hiding, locking and password protecting your WordPress form. With these options you can hide a form, password protect or lock forms for specific users, so that they won't be able to submit the form.

For instance you can hide the form from logged out users or from specific user roles. You can also display a "lockout" message based on these conditions to the user.

Only allow logged in users to submit a form

If you only want currently logged in users to be able to submit a form, you can enable the Allow only logged in users setting. Optionally you can choose to Hide the form from not logged in users (those that are logged out). Another options you have is to display a message to those that are logged out. And in case you are not hiding the form from the logged out users, you may also display a message after they tried to submit the form, as shown below.

Hide form from logged in users

Allow only specific user roles to submit the form

To allow only specific user roles from being able to submit the form you can enable the Allow only specific user roles setting. Followed by the roles you wish to allow to submit the form. You can select multiple roles by holding the CTRL key on your keyboard while left clicking the roles as shown below.

Hiding the form from locked out users

In most cases when a user is locked out, you will probably want to hide the form from this user. You can do so by enabling the Hide form from locked out users setting, as shown below.

Display a message for the locked out user

Whenever a user is locked out based on any of the conditions, you can optionally display a message to the user to inform them.

Password protect a form

In some cases you might want to hide your form from already logged in users. For instance when you have a , you don't really require a logged in user to see this form, simply because they are already registered. You can do so by enabling the Hide form from logged in users settings as shown below.

We have a dedicated guide on how to password protect your forms here: .

Registration form
Advanced > Password protect
this article
this article
this article
this article
Allow only logged in users to submit the form.
Hiding forms from currently logged in users.
Allow only specific user roles to submt the form.
Hiding the form from a locked out user.
Display a message or notification regarding the lockout.
Allow only logged in users to submit the form.
Hiding forms from currently logged in users.
Allow only specific user roles to submt the form.
Hiding the form from a locked out user.
Display a message or notification regarding the lockout.