Limit Survey responses?
Permalink
Is there an easy way to limit the number of responses you get from a survey built using the concrete5 survey block? By default, a cookie is set in the browser that says the person has voted. However, if a person clears their cookies/cache, then they could answer the survey again.
I like how when you're logged in to your concrete5 website and you answer the survey the result (IP address, user, date submitted, & answer) is recorded in the "Reports >> Form" section...but that information isn't displayed if you're not logged in when you vote.
I don't want them to have to create a login in order to answer the survey, but I would like to limit the response based on IP address to 1 response per IP address per day. Is there a way to check and see if the cookie has not been set, then to check the data from the Forms Report to see if that IP address has recorded an answer for that day, or to store those values (IP address, date submitted, and answer) even if they aren't logged in?
I assume it would take a little bit of adding some code into the pages, but I'm not so sure where to begin or if it's even possible...is it?
I like how when you're logged in to your concrete5 website and you answer the survey the result (IP address, user, date submitted, & answer) is recorded in the "Reports >> Form" section...but that information isn't displayed if you're not logged in when you vote.
I don't want them to have to create a login in order to answer the survey, but I would like to limit the response based on IP address to 1 response per IP address per day. Is there a way to check and see if the cookie has not been set, then to check the data from the Forms Report to see if that IP address has recorded an answer for that day, or to store those values (IP address, date submitted, and answer) even if they aren't logged in?
I assume it would take a little bit of adding some code into the pages, but I'm not so sure where to begin or if it's even possible...is it?