Hi, Building a page with form submission. I would like to strictly restrict users with one submission / avoid multiple form submission by a user. This is my first app. Kindly help me with workflow and if possible with expressions.
Hi there, @rajesh1… there are a number of ways to do what you have described. The first one that comes to mind is, when a user submits the form, do a search through all of the existing records of the associated data type to see if the user has already created a record. So, you would have an Only when condition on your Create a new thing
workflow that is only when Search for Associated Data Types:count is 0
, and the constraint on the search would be Created by = Current User
.
Now, say you don’t want to search through all of the existing records of the associated data type every time a user submits the form. Well, you could do something like add a field on the User
data type that denotes whether or not the user has already submitted the form. So, you could have a yes/no field called submitted
on the User
data type, and you could flip the field from no to yes when the user submits the form the first time. In this case, you would have an Only when condition on the Create a new thing
workflow that is only when Current user's submitted is no
.
In each of the examples above, you could terminate the workflow and show a message or something if the user has already submitted the form.
Anyway, I hope this response make sense and I hope it helps.
Best…
Mike
Yes @mikeloc, let me check these. I think I shall do this check on page load so that I shall hide the form itself. Thanks a ton for a quick suggestion.
Hiding the form altogether is certainly another way to go… can’t submit it if you can’t see it!
This topic was automatically closed after 70 days. New replies are no longer allowed.