SalesforceLabs / survey-force

85 stars 61 forks source link

Adding a new lookup field to Surveys taken #56

Closed jarrods123 closed 4 years ago

jarrods123 commented 4 years ago

Hi,

I'm wondering what the process would be to add a new lookup field to be auto-populated like contact and case in the url via id, this would be for a custom object.

jrattanpal commented 4 years ago

Logic for adding Contact/Case ID fields is in https://github.com/SalesforceLabs/survey-force/blob/master/src/classes/ViewSurveyController.cls

IF you search for "ContactId", you will see logic there like