You need to sign in to do that
Don't have an account?
Chris Heath 7
"Create & Edit Visualforce Pages" Challenge - Console Command not working
Hello all,
In the Create & Edit Visualforce Pages challenge, for #6 in the first part they ask you to run a command in Console to make the page look like Lightning. When I run this command, I am receiving the error "Uncaught ReferenceError: $A is not defined at <anonymous>:1:1".
Has the command changed?
Thank you!
In the Create & Edit Visualforce Pages challenge, for #6 in the first part they ask you to run a command in Console to make the page look like Lightning. When I run this command, I am receiving the error "Uncaught ReferenceError: $A is not defined at <anonymous>:1:1".
Has the command changed?
Thank you!
Please make sure that you are in the Lightning Experience at the time when you execute this command from the console. I am attaching a screenshot where I am redirected to the desired page on execution of the command.
Before execution:
After execution:
The reason you are getting $A as undefined is most probably because you were using the salesforce classic experience.
Hope this helps,
Sandeep
$A.get("e.force:navigateToURL").setParams(
{"url": "/apex/HelloWorld"}).fire();