+ Start a Discussion

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.