We had earlier developed a survey creation tool within AEM which is currently being used by a handful of authors to create surveys using a set of components and configuring them as per their requirement.
While this has satisfied all the use-cases so far, we have been approached with a new use-case wherein any employee within the organisation can login using their employee credentials and create a survey, much like Google or Microsoft forms.
The requirement has stated that providing survey creation capability to these employees directly via AEM author is not an option since the employees are not all technically strong.
The request has been to wrap these capabilities into a webpage which will allow the user to create surveys on the fly.
Is there a way to extend the authoring capability directly onto the webpage? Or is there a better approach to this use-case that anyone can suggest?
As per your usecase, it suggests that employees should be authoring the survey page in a publish environment.
There is no out-of-the-box functionality provided in AEM to extend authoring in a publish instance. You have to do customizations for this usecase.
Here's what I would suggest:
1. Create a survey page and give all the functionalities such that when the employee logins to the survey page in website he has all options to create a survey - you can plan to develop the components in such a way that the fields required for the survey has to be available by a click of a button, I am just giving an example, you can tweak the code as per requirement.
2. Create a Closed User group, add the employees to the group and apply the CUG configurations to the survey page in author and activate. So whenever he hits the survey page in website, he is asked to login.
3. Make the CUG configurations in dispatcher as well.
4. If you are having more than one publisher and want to keep the survey content only within publishers but not author, you also need to sync the content between the publishers.