I need some help. I have a submission form connected to a database collection. I want site members to be able to make only one submission per member account.
If the logged-in site member has made a submission to the collection previously, I want the submission form fields to be disabled inclusive of the submit button.
I understand that I would have to employ .if statements and a Data Query.
I am still learning wix code but I am stuck as to how to put this all together (Code wise).
Make the Submit button disabled on load.
Query the submission collection database owner filed for the current member Id.
If the returned totalCount === 0 enable the button.
See:
Query with eq: