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
kantravikantkantravikant 

To check values of variables in visualforce page.

How to check values of variables used in vf page.

eg value of test in recordSetVar="test" on visulaforce page.

kantravikantkantravikant

Use following code

 

<script type="text/javascript">
alert('{!test}');
</script>

 

Thanks

Ravi

Mike @ BlackTabMike @ BlackTab

Using Console.Log({!test}); would be more appropriate, it provides a lot more information when using firebug, or the Chrome/Safari developer console. Plus, you don't get bombarded with popup windows if you have to debug inside a javascript loop.