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
Anish SinghAnish Singh 

encrypt url of Visual force page

Hi Guys,
I created a Visual force page and used it in opportunity custom button using Standard COntroller in VF page. The page is opening and redirecting me to desired URL, but I want the URL section on taskbar of VF page to be hidden or encrypted so that the end user cannot edit the opportunity record ID.
Can anyone help me how to achieve this? PFB screenshot for your reference which reflects the VF page URL that I want to hide or encrypt.
VF page link that I want to hide or encrypt
Thanks,
Anish
Raj VakatiRaj Vakati
  • No native salesforce support to encrypted  URL 
  • You are using Standard Controller, SO you need to pass record Id in URL. Otherwise, you will see no data into the form 
  • You can try to do it with hidden form fields ..  

Refer this link for URL encryption example  

https://www.codeproject.com/Articles/33350/Encrypting-Query-Strings
 
Raj VakatiRaj Vakati
Or try to store as locale store and retrieve from there  rather than query from URL parameters 
Anish SinghAnish Singh
Thanks for your response Raj.
I am using a URL, the page is opening but I have not passed the record ID might be becasue of which my desired page is not refeledting. Can you please sugegst how to pass the opportunity record ID. I am mentioning below the details of VF page that I am using:
................................................
<apex:page standardController="Opportunity" showHeader="false">
    <apex:iframe src="http://xxxx.xxxxx.com/cat/frmlogin.aspx" height="600px" scrolling="true"/>
 </apex:page>
................................................