The button would show only when they submitted once. So really, if there’s any data for the user in the database, then the button would show.
I’m familiar with the .show and .hide functions and I’m currently using them now.
I’m a little shaky on running a query for my database.
Would the function be…
function checkDB( ){
wixData.query(“myCollectionName”)
.find( )
.then( (results) => {
results.forEach((result)=>{
if (result.fieldName > 0){
$w(’ # button’).show();
}
else {
$w(’ # button’).hide();
});
.catch( (err) => {
let errorMsg = err;
} );
}