+ 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.