function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nisha VishwasraoNisha Vishwasrao 

Visualforce page URL getting updated

Hi,
We have a visualforce page for survey based on our force.com site. (http://site_URL/apex/userfeedback?id={!Account.Id})
A button on account invokes the above url.
The visualforce page uses standard controller as Account and a controller extension apex class which executes the entire functionality of the surveys.
It implements the logic to find an existing survey, if survey is already completed it shows the thank you page, it also handles the logic to skip certain questions based on answers of other questions.
There is method to find existing survey. and this method is called from visualforce page as action on the very first apex:page action parameter.
I have difficulty understanding this method. The method basically tries to parse the url to get the survey id (ApexPages.currentPage().getParameters().get('survey');) and I am unable to find out where/how is the survey id getting passed to the url.
I cannot find any code which will say something like Page.userfeedback.getParameters().put('survey', Survey.id); anywhere in the extension class or the trigger of underlying account or survey object. I also checked the URL Rewriter Class on the site which has code to add survey id for other pages of other surveys but not for the userfeedback survey.
Does anyone have any suggestion about how and where should I look for this missing code or functionality?
I do not have any documentation for this functionality but I was successfully able to understand the rest of the code.