I am passing a parameter from vf page A to page B through URL and getting it on controller of B.It is working when I tried in browser.I created a app for salesforce1 and when I run it ,I am not able to get parameter from URL. Please guide me to fix this issue.

  • 1
    try to get the parameter on load of page. using javascript. $CurrentPage.parameters.parameter_name. bcz after onload url changed in SF1
    – Ankuli
    Aug 11, 2015 at 7:50
  • I am having this same issue and when trying to get the parameter on load in javascript it's not there either. Were you able to solve it?
    – Llamalo_X
    Oct 16, 2017 at 23:51

1 Answer 1


We can use '{!$CurrentPage.parameters.searchText}' at javascript code and get url parameter in SF1 also. we can keep this script on top of page. so before url changes in SF1 , we get the required result.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.