{"id":90795,"date":"2017-07-21T15:01:36","date_gmt":"2017-07-21T15:01:36","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=90795"},"modified":"2021-08-10T11:25:02","modified_gmt":"2021-08-10T11:25:02","slug":"how-to-fire-lightning-event-from-visualforce-page","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/","title":{"rendered":"How to fire Lightning Event from Visualforce Page"},"content":{"rendered":"<p>In this blog, we will learn how to fire lightning event from visualforce page. We will be using <strong>apex:includeLightning<\/strong> and <strong>aura:dependency<\/strong> tags. Let us proceed with knowing about these tags in brief.<\/p>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<h3 class=\"panel-title\">Tag Reference<\/h3>\n<\/div>\n<div class=\"panel-body\">\n<p>A brief information about tags.<\/p>\n<p><strong>1) apex:includeLightning :<\/strong> It includes lightning components for Visualforce JavaScript library, lightning.out.js, according to the domain mapping.<\/p>\n<p><strong>Attributes-<\/strong><br \/>\n<strong>&#8211;&gt; id <\/strong>&#8211; An identifier to the element.<br \/>\n<strong>&#8211;&gt; rendered <\/strong>&#8211; Specifies if the element will be rendered or not. The default value is true.<\/p>\n<p><strong>2) aura:dependency <\/strong>&#8211; This tag is used for declaring dependencies.<\/p>\n<p><strong>Attributes-<\/strong><br \/>\n<strong>&#8211;&gt; resource <\/strong>&#8211; The resource on which the dependency is being declared.<br \/>\n<strong>&#8211;&gt; type <\/strong>&#8211; The type of resource that component depends on. The default value is &#8220;COMPONENT&#8221;.<\/p>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<h3 class=\"panel-title\">Fire lightning Events in Visualforce Page<\/h3>\n<\/div>\n<div class=\"panel-body\">\n<p>Now, let&#8217;s start with the code. We have to fire an Event, so, first and foremost we will require an event. So, we will write a simple code for event containing single parameter, and event type should be &#8220;APPLICATION&#8221;:<\/p>\n<pre class=\"brush:xml\">&lt;aura:event type=\"APPLICATION\"&gt;\n    \n    &lt;!-- \n        \/**\n         * Webkul Software.\n         *\n         * @category  Webkul\n         * @author    Webkul\n         * @copyright Copyright (c) 2010-2016 Webkul Software Private Limited (https:\/\/webkul.com)\n         * @license   https:\/\/store.webkul.com\/license.html\n         *\/\n     --&gt;\n    \n\t&lt;aura:attribute type=\"string\" name=\"data\" \/&gt;\n&lt;\/aura:event&gt;<\/pre>\n<p>Now, let&#8217;s start with the app:<\/p>\n<pre class=\"brush:xml\">&lt;aura:application access=\"GLOBAL\" extends=\"ltng:outApp\"&gt;\n\t\n    &lt;!-- \n        \/**\n         * Webkul Software.\n         *\n         * @category  Webkul\n         * @author    Webkul\n         * @copyright Copyright (c) 2010-2016 Webkul Software Private Limited (https:\/\/webkul.com)\n         * @license   https:\/\/store.webkul.com\/license.html\n         *\/\n     --&gt;\n    \n\t&lt;!--Access of the app should be \"global\"--&gt;\n\t&lt;!--The app should extend from ltng:outApp or ltng:outAppUnstyled--&gt;\n\t&lt;!--The dependency component can be called from Visualforce page, using this app.--&gt;\n\t&lt;aura:dependency resource=\"c:myDemoComponent\" \/&gt;\n&lt;\/aura:application&gt;<\/pre>\n<p>We have to create a myDemoComponent which we have the dependency on, so here is the code:<\/p>\n<pre class=\"brush:xml\">&lt;!--COMPONENT--&gt;\n&lt;aura:component &gt;\n    \n    &lt;!-- \n        \/**\n         * Webkul Software.\n         *\n         * @category  Webkul\n         * @author    Webkul\n         * @copyright Copyright (c) 2010-2016 Webkul Software Private Limited (https:\/\/webkul.com)\n         * @license   https:\/\/store.webkul.com\/license.html\n         *\/\n     --&gt;\n    \n    &lt;br\/&gt;&lt;br\/&gt;\n    &lt;aura:attribute name=\"str\" type=\"String\" default=\"Hello World Ligtning!!!\"\/&gt;\n  \t&lt;div&gt;{!v.str}&lt;\/div&gt;\n    &lt;br\/&gt;&lt;br\/&gt;\n\t&lt;aura:registerEvent name=\"myevent\" type=\"c:myEvent\" \/&gt;\n\t&lt;ui:button label=\"fireEvent\" press=\"{!c.fireevent}\" \/&gt;\n&lt;\/aura:component&gt;\n\n\n&lt;!--Controller--&gt;\n({\n    \/**\n     * Webkul Software.\n     *\n     * @category  Webkul\n     * @author    Webkul\n     * @copyright Copyright (c) 2010-2016 Webkul Software Private Limited (https:\/\/webkul.com)\n     * @license   https:\/\/store.webkul.com\/license.html\n     *\/\n    fireevent: function(component, event, helper) {\n        var myEvent = $A.get(\"e.c:myEvent\");\n        myEvent.setParams({\"data\":\"Test\"});\n        myEvent.fire();\n    }\n})<\/pre>\n<p>Now let&#8217;s call the use the App in Visualforce Page:<\/p>\n<pre class=\"brush:xml\">&lt;apex:page showHeader=\"false\" sidebar=\"false\"&gt;    \n    &lt;!-- \n        \/**\n         * Webkul Software.\n         *\n         * @category  Webkul\n         * @author    Webkul\n         * @copyright Copyright (c) 2010-2016 Webkul Software Private Limited (https:\/\/webkul.com)\n         * @license   https:\/\/store.webkul.com\/license.html\n         *\/\n     --&gt;\n     \n     \n    &lt;apex:includeLightning \/&gt;\n    \n    &lt;!--DOM element in which lightning will be rendered--&gt;    \n    &lt;div id=\"lightning\"&gt; Hello world VF ..!!! &lt;\/div&gt;\n    &lt;script&gt;\n        \/\/lightning out function\n        $Lightning.use(\"c:myEventApp\", function() {\n            $Lightning.createComponent(\"c:myDemoComponent\", {}, \"lightning\", function(){\n                $A.eventService.addHandler({ \"event\": \"c:myEvent\", \"handler\" : visualForceFunction});\n            });\n        }); \n\n    &lt;\/script&gt;\n\n    &lt;script&gt;\n    \/\/handler called in lightning out function\n    var visualForceFunction = function(event){\n        var myEventData = event.getParam(\"data\");\n        alert(myEventData);\n    };\n\n    &lt;\/script&gt;\n&lt;\/apex:page&gt;<\/pre>\n<\/div>\n<\/div>\n<div class=\"panel panel-success\">\n<div class=\"panel-heading\">\n<h3 class=\"panel-title\">Output<\/h3>\n<\/div>\n<div class=\"panel-body\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/outpuFire.png\"><img decoding=\"async\" class=\"alignnone wp-image-90798 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/outpuFire.png\" alt=\"\" width=\"900\" height=\"303\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/outpuFire.png 900w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/outpuFire-250x84.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/outpuFire-300x101.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/outpuFire-768x259.png 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" loading=\"lazy\" \/><\/a><\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<h3 class=\"panel-title\"><i class=\"fa fa-user\"><\/i>Support<\/h3>\n<\/div>\n<div class=\"panel-body\">\n<p>That\u2019s all for Remote Action function in Visualforce Page, still have any issue feel free to add a ticket and let us know your views to make the code better <a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\"> https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/<\/a><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we will learn how to fire lightning event from visualforce page. We will be using apex:includeLightning and aura:dependency tags. Let us proceed with knowing about these tags in brief. Tag Reference A brief information about tags. 1) apex:includeLightning : It includes lightning components for Visualforce JavaScript library, lightning.out.js, according to the domain <a href=\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":104,"featured_media":73168,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3554,1887],"tags":[5122],"class_list":["post-90795","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lightning-development","category-salesforce","tag-lightning-event"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to fire Lightning Event from Visualforce Page<\/title>\n<meta name=\"description\" content=\"In this blog, we will learn how to fire lightning event from visualforce page. We will be using apex:includeLightning and aura:dependency tags.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to fire Lightning Event from Visualforce Page\" \/>\n<meta property=\"og:description\" content=\"In this blog, we will learn how to fire lightning event from visualforce page. We will be using apex:includeLightning and aura:dependency tags.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-07-21T15:01:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-10T11:25:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/lightning-code-snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"945\" \/>\n\t<meta property=\"og:image:height\" content=\"356\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aakanksha Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aakanksha Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/\"},\"author\":{\"name\":\"Aakanksha Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/7d54984c6524404eb2ba261ace62da80\"},\"headline\":\"How to fire Lightning Event from Visualforce Page\",\"datePublished\":\"2017-07-21T15:01:36+00:00\",\"dateModified\":\"2021-08-10T11:25:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/\"},\"wordCount\":254,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/lightning-code-snippet.png\",\"keywords\":[\"lightning event\"],\"articleSection\":[\"Lightning Development\",\"Salesforce\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/\",\"name\":\"How to fire Lightning Event from Visualforce Page\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/lightning-code-snippet.png\",\"datePublished\":\"2017-07-21T15:01:36+00:00\",\"dateModified\":\"2021-08-10T11:25:02+00:00\",\"description\":\"In this blog, we will learn how to fire lightning event from visualforce page. We will be using apex:includeLightning and aura:dependency tags.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/lightning-code-snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/lightning-code-snippet.png\",\"width\":945,\"height\":356},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to fire Lightning Event from Visualforce Page\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/7d54984c6524404eb2ba261ace62da80\",\"name\":\"Aakanksha Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eef6d7ed23fc4ad8f12c94d6d6d30ec2ebbb9bedbf9d8a9dc8626a3a171fa3fa?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eef6d7ed23fc4ad8f12c94d6d6d30ec2ebbb9bedbf9d8a9dc8626a3a171fa3fa?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Aakanksha Singh\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/aakanksha-singh391\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to fire Lightning Event from Visualforce Page","description":"In this blog, we will learn how to fire lightning event from visualforce page. We will be using apex:includeLightning and aura:dependency tags.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/","og_locale":"en_US","og_type":"article","og_title":"How to fire Lightning Event from Visualforce Page","og_description":"In this blog, we will learn how to fire lightning event from visualforce page. We will be using apex:includeLightning and aura:dependency tags.","og_url":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-07-21T15:01:36+00:00","article_modified_time":"2021-08-10T11:25:02+00:00","og_image":[{"width":945,"height":356,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/lightning-code-snippet.png","type":"image\/png"}],"author":"Aakanksha Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Aakanksha Singh","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/"},"author":{"name":"Aakanksha Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/7d54984c6524404eb2ba261ace62da80"},"headline":"How to fire Lightning Event from Visualforce Page","datePublished":"2017-07-21T15:01:36+00:00","dateModified":"2021-08-10T11:25:02+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/"},"wordCount":254,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/lightning-code-snippet.png","keywords":["lightning event"],"articleSection":["Lightning Development","Salesforce"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/","url":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/","name":"How to fire Lightning Event from Visualforce Page","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/lightning-code-snippet.png","datePublished":"2017-07-21T15:01:36+00:00","dateModified":"2021-08-10T11:25:02+00:00","description":"In this blog, we will learn how to fire lightning event from visualforce page. We will be using apex:includeLightning and aura:dependency tags.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/lightning-code-snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/lightning-code-snippet.png","width":945,"height":356},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-fire-lightning-event-from-visualforce-page\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to fire Lightning Event from Visualforce Page"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/7d54984c6524404eb2ba261ace62da80","name":"Aakanksha Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eef6d7ed23fc4ad8f12c94d6d6d30ec2ebbb9bedbf9d8a9dc8626a3a171fa3fa?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eef6d7ed23fc4ad8f12c94d6d6d30ec2ebbb9bedbf9d8a9dc8626a3a171fa3fa?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Aakanksha Singh"},"url":"https:\/\/webkul.com\/blog\/author\/aakanksha-singh391\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/90795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/104"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=90795"}],"version-history":[{"count":5,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/90795\/revisions"}],"predecessor-version":[{"id":300708,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/90795\/revisions\/300708"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/73168"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=90795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=90795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=90795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}