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
PappuPappu 

How to access sobject Id in VF page javascript?

Hi Guys,

I am trying to update the owner name of multiple records using a button in custom VF page.

For this, my org is using the below code, which will take the user to another VF page for updating the owner name.But, it is written inside the button javascript.

srcUp('/apex/multiChangeOwner?ids={!Request__c.Id}' + selectedReqIDs.join(";") + '&isdtp=vw');

Now, I want to use the same functionality with javascript in my custom visual force page.

My bad luck I am not able to acces the "Request__c.Id" field inside the VF page javascript.

Is showing an error "Unknown property"

Please provide me any alternative/suggestions.

Thanks!!