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

Retaining Query String after rendering

I have a visualforce page. There are javascript validations on submitting the page. Once submitted the query string parameter is not retained in the URL. 
Can anyone suggest on how to retain the query string.
The target page is not a new page, the same page is rendered again after submitting with different message

Thanks in advance
Himanshu ParasharHimanshu Parashar
Hi NIkita,

There are two options for that.

1. You can use actionfunction to rerender a specific part if you want to instead of whole page.
2. Get your query string in controller side and then put that back while sending page reference to vf page again.

So It will be better if you can share your code