SalesforceLabs / survey-force

86 stars 61 forks source link

Survey Header Text is not displaying in Survey page #136

Closed sherineraj closed 2 years ago

sherineraj commented 2 years ago

I setup public access setting and gave Read only permissions to Survey__c object , but I don't see survey header content. Please suggest a solution to resolve this issue.

jrattanpal commented 2 years ago

@sherineraj

I have seen this in the past. THis is the result of some missing permissions. Please go through ALL the steps mentioned at https://github.com/SalesforceLabs/survey-force and ensure that all permissions are assigned to guest user.

sherineraj commented 2 years ago

@jrattanpal How do I control the response to guest user? How to set the Emailable link as constant? I always need to choose the sharing option and select site from "Share My Survey" to get emailable link.

jrattanpal commented 2 years ago

That is controlled in apex in https://github.com/SalesforceLabs/survey-force/blob/main/force-app/main/default/classes/ViewShareSurveyComponentController.cls

If you set "surveyId" and "selectedURLType", then you can call surveyURLBase() and surveyURL() to get that link.

You will need to use Apex for that

sherineraj commented 2 years ago

Resolved