SalesforceLabs / survey-force

85 stars 61 forks source link

Feature request: Limit number of responses on the survey #123

Open jrattanpal opened 3 years ago

jrattanpal commented 3 years ago

This can limit the number to 1 or more; whatever that admin desires. It'll be 0 for unlimited.

dschach commented 3 years ago

Do you want to hide the survey publicly or to hide AND fully prevent any additional submissions? Do we have a checkbox that says that the survey is open for submissions? If not, that's a good feature. So I'd use a check on the Surveys Taken object (yeah, a trigger may be necessary at this time, though a count of collection items may be possible in a flow) and uncheck publicly available and open for submissions when we hit the number.

jrattanpal commented 3 years ago

I have to test this but following is what I was thinking:

I think that maybe the easiest and mix of no-code/code solution where admin can easily control how many survey responses are allowed.

If this is for, say, a case then admin can make 1. After customer has completed it, survey will close