One time form input

Hi!

What code would I need to use to identify that a person has already entered and/or completed a form/input fields into a database and therefore will not be shown that form/input field(s) again?

Many thanks!

If the users are logged in you should store their User Id into the data collection and check that they already submitted the data. If they do not login use local storage like

// Add import at the top of page
import {local} from 'wix-storage';

// When they submit the form...
local.setItem("submitted", true);

// Then to check returning users

if (local.getItem("submitted") && local.getItem("submitted") === tue) {
  // Here you know the user have submitted
} else {
  // This user have not submitted the form
}

Thank you Andreas!

@mikebutcherpt If my solution worked for you please mark it as top comment as it will help me.

hi im not really familiar yet with wix corvid can you give the full code for this?

after a member signup to my wix website they will be redirected to the wix members page and fill out a form after completing the form the form will not show up anymore. can you help?

Please add your own issue into a new post instead of bumping up an old post.

To learn about programming with Corvid, read the following articles that will help you start working with Corvid:

ok sorry for that.