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
Matt HimeMatt Hime 

Communities Lightning beta: how do I launch Ask the Community from a component?

I've been asked to develop a process to preceed Ask the Community in the Napili template.  I'm doing this through a lightning component,  once my component has copmpleted it's job,  I need to proceed to Ask the Community.  However,  this is not a page,  so I cannot display via a url - effectively,  what I need to do is recreate the click event for the original button.  Has anyone got any suggestions as to how I can acheive this?
Best Answer chosen by Matt Hime
Matt HimeMatt Hime
I have been able to do this with the following code:
var appEvent = $A.get("e.selfService:showQuestionPost");
appEvent.fire();

 

All Answers

Matt HimeMatt Hime
Can anyone at Salesforce help?
Matt HimeMatt Hime
I have been able to do this with the following code:
var appEvent = $A.get("e.selfService:showQuestionPost");
appEvent.fire();

 
This was selected as the best answer