You need to sign in to do that
Don't have an account?
need help with trailhead: Visualforce Basics
Hello. This is a really newbie question but I haven't done coding in a while and got stuck. The Visualforce Basics trailhead says to Open your browser’s JavaScript console and enter the following code for format your Visualforce page with Lightning.
$A.get("e.force:navigateToURL").setParams(
{"url": "/apex/pageName"}).fire();
I know how to get to the Chrome DevTools, but how do you run Javascript inside it?
$A.get("e.force:navigateToURL").setParams(
{"url": "/apex/pageName"}).fire();
I know how to get to the Chrome DevTools, but how do you run Javascript inside it?
This part is badly explained and it is the only time that I had done this with the trailhead modules and because I had taken javascript classes before, I could do: https://developer.salesforce.com/forums/ForumsMain?id=9060G000000BiGt
Best regards
Alain
All Answers
Or Press F12, Ctrl + Shift + I
https://developers.google.com/web/tools/chrome-devtools/console/
I can't get it to work. I'm getting
Uncaught ReferenceError: $A is not defined
at <anonymous>:1:1
Check out this similar thread: Getting '$A is not defined' error while doing VF Trailhead (https://developer.salesforce.com/forums/?id=9060G0000005MvtQAE)
This part is badly explained and it is the only time that I had done this with the trailhead modules and because I had taken javascript classes before, I could do: https://developer.salesforce.com/forums/ForumsMain?id=9060G000000BiGt
Best regards
Alain