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

Call Lightning Event from VisualForce Page


I want to call a Lightning Component event from a Visualforce page in a Community.

I've tried in this way
<div id="lightning" style=""></div>

$Lightning.use("c:TheApp", function() {
	$Lightning.createComponent("c:TheComponent", {},
		function(cmp) {
			createdCmp = cmp;
			var myExternalEvent;
			myExternalEvent = $A.get("e.c:TheEvent");
				"p": 'p',
It's working but it is not what I exactly want, because in this way the compnent is inserted in the page a runtime.

Is there a way to call the event without inserting the component a runtime, but inserting it in the page with the community builder ?

Thanks in advance.
Hi Rick, 

You may visit this link it may be helpful for you.

Sandeep Singhal
Amit Jadhav 13Amit Jadhav 13
i create a vf page for event 
my requirement is show the Parent account,Contact Name,Account Name,Meeting Date,Title in one pageblock table.
how its possible 
please tell me

thank in advance