Open sherineraj opened 1 year ago
@sherineraj
This is currently not possible. However, you can do it easily with following
(Please note that this has not been tested and I am simply theorizing)
When Survey is completed, https://github.com/SalesforceLabs/survey-force/blob/main/force-app/main/default/flows/Count_Completed_Surveys.flow-meta.xml is run and Completed_Surveys__c field is updated
Next time when someone tries to visit that link, Outside users will not be able to see that survey.
This may not apply to internal users. For that, you may have to change the code in https://github.com/SalesforceLabs/survey-force/blob/main/force-app/main/default/classes/ViewSurveyController.cls
@jrattanpal Thank you for your reply. Where I can find "Share_with_Guest_User__c" field?
You can find it on Surveys object. That is the field used in "Sharing Rule" which exposes a survey on Force.com site
On Mon, Sep 19, 2022 at 4:09 PM sherineraj @.***> wrote:
@jrattanpal https://github.com/jrattanpal Thank you for your reply. Where I can find "Share_with_Guest_User__c" field?
— Reply to this email directly, view it on GitHub https://github.com/SalesforceLabs/survey-force/issues/147#issuecomment-1251498292, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV6HLE33SQIOYJQUIEWTHTV7DCAJANCNFSM6AAAAAAQNUYBL4 . You are receiving this because you were mentioned.Message ID: @.***>
Thank you for your reply. Just to be clear the Total number of survey submitted by all participants will be locked? OR The max number of Survey the one person can submit? @jrattanpal
That field is for total number of surveys by all participants. The way force.com sites works is by using guest user. That means one user for all participants. It’s not possible to track individual user for each survey taken without some special coding; which you can do if you desire but not available out of the box
On Tue, Sep 20, 2022 at 9:48 AM sherineraj @.***> wrote:
Thank you for your reply. Just to be clear the Total number of survey submitted by all participants will be locked? OR The max number of Survey the one person can submit? @jrattanpal https://github.com/jrattanpal
— Reply to this email directly, view it on GitHub https://github.com/SalesforceLabs/survey-force/issues/147#issuecomment-1252382475, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV6HLCCPTRX4MGCJ7CDPVDV7G6CZANCNFSM6AAAAAAQNUYBL4 . You are receiving this because you were mentioned.Message ID: @.***>
--
Jaswinder Rattanpal www.rattanpal.com
Hi, Can we make the Survey link expired once the response is filled by the user? we don't need duplicates and at the same time we need the user to fill survey only once. Thankyou