Form that can be filled only once

203 views
Skip to first unread message

Giovanni Pederiva

unread,
Feb 14, 2014, 4:44:36 PM2/14/14
to mezzani...@googlegroups.com
hi, i'm trying to make a website for an association, we need to have some people apply for a summer school. i'd like to create a form with all the data i need to collect from them, but i want also to allow each user to submit that form only once. is there a way to do this?  thanks in advance

Josh Cartmell

unread,
Feb 14, 2014, 5:22:57 PM2/14/14
to mezzani...@googlegroups.com
Hey Giovanni, you definitely can.

I would require the users to log in, check if the currently logged in use has already submitted the form and if so display a message saying that they've already submitted the form and don't need to again.  Alternatively when a user submits the form you could check some unique piece of submitted data (maybe their name) and if a form submission has already been submitted matching that respond that they have already submitted the form.


On Fri, Feb 14, 2014 at 1:44 PM, Giovanni Pederiva <giovanni...@gmail.com> wrote:
hi, i'm trying to make a website for an association, we need to have some people apply for a summer school. i'd like to create a form with all the data i need to collect from them, but i want also to allow each user to submit that form only once. is there a way to do this?  thanks in advance

--
You received this message because you are subscribed to the Google Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Sam Kingston

unread,
Feb 14, 2014, 5:38:43 PM2/14/14
to mezzani...@googlegroups.com
Further to what Josh has said, since forms are a core part of Django, have a look through the excellent docs they have:


The "if user has submitted, reject" bit is perfect for a form validator.

Good luck

Giovanni Pederiva

unread,
Feb 15, 2014, 3:19:34 AM2/15/14
to mezzani...@googlegroups.com
thanks a lot for the advice


--
You received this message because you are subscribed to a topic in the Google Groups "Mezzanine Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mezzanine-users/dtz4eUGkzW8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mezzanine-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages