SalesforceLabs / survey-force

85 stars 61 forks source link

Feature Request: Set an expiry date/time on the survey #122

Open jrattanpal opened 3 years ago

jrattanpal commented 3 years ago

This request was made via a review on AppEx: https://appexchange.salesforce.com/appxListingDetail?listingId=a0N30000003I2gDEAS&revId=a6H3u000000Gw4MEAS

I cannot find to set a survey when to be expired. It seems not to have any expiry date/time now. We need to prevent users to submit responses in over 4 hours or later.

jrattanpal commented 3 years ago

When you set "publicay available" to false, that survey will not appear for the Force.com Site Guest user (This may also impact internal users but you will need to test that)

dschach commented 2 years ago

Should the system use an "expire in x days" "expire in x hours" or "expire on this date/time" setup for this?

claico commented 2 years ago

I have been doing surveys since SurveyForce was Survey Shark, and there was no "expiration".

Days is the simplest. You can use the same value all the time.The drawback is that when the potential responder finally opens the email invitation, they do not know when it was sent.

Date is a little better, because the responder knows what the date is. The problem is the date in "local time."

Date/Time just extends the problem of what time zone.

Also, I just returned from a vacation in Mexico. In order to return, I had to have a Covid test the day before my flight. The available test was at 10 am the day before. My flight was at 5:30 pm. So, is the "day before" 24 hours or anything from midnight to midnight the day before?

I guess I would go with "days" and state in the invitation that this survey invitation expires in X days.

On Thu, May 12, 2022 at 9:34 PM David Schach @.***> wrote:

Should the system use an "expire in x days" "expire in x hours" or "expire on this date/time" setup for this?

— Reply to this email directly, view it on GitHub https://github.com/SalesforceLabs/survey-force/issues/122#issuecomment-1125598629, or unsubscribe https://github.com/notifications/unsubscribe-auth/AECDCXWBW3MHVRK5CZRELPDVJW5UFANCNFSM46KF3UKA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- David Claiborne | Principal | (504) 655-0000 | www.claico.com

jrattanpal commented 2 years ago

I'd like to keep it as simple as possible. We can do "days" and then use addDays from CreatedDate and use that.

Then I wonder, is the "days" when survey was created or sent? (as mentioned above)

What if the survey was created but not really "activated/sent" for a while?

We do not track when surveys were sent so that is not something we can track. I don't see an easy solution for this.

Thoughts?