I want to access a Sobject field using javascript in a visual force page and based on its value perform an action. How can I access a Sobject field using javascript?
Take the 2-minute tour
×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.
What sort of access do you need? You could use javascript remoting, but then if you're already working on a page that has the record loaded in the controller during construction/init you can just use regular old merge fields: Controller
Page
If you need the script to be a bit more dynamic (and not just setup when the page is rendered) then remoting is probably your best bet, but it's hard to suggest the best solution without more information. |
|||||||||
|