question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

is it possible to build Email template question using survey-js library?

See original GitHub issue

Are you requesting a feature, reporting a bug or asking a question?

question

What is the current behavior?

is it possible to create a email template question which should trigger on submit of the survey.The email template should contains, To Address, BCC and Body

Same like G-Mail or Outlook email template

the Email template should trigger on completion of survey

What is the expected behavior?

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

  • browser:
  • browser version:
  • surveyjs platform (angular or react or jquery or knockout or vue):
  • surveyjs version:

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
NHSNeilcommented, Jul 22, 2021

We have added a new Property on the survey using…

SurveyKo .Serializer .addProperty("survey", { name: "Template:text", default: "{}", category: "general" });

This allows the designer to add templated text into the form definition and it will pass along with the saved form data when a form is completed. We then have an API that we developed, based on scriban, that takes the saved survey data and the template from the form definitions to return a finished doc based on the template.

I would never expect a survey designer app to have all that functionality built in.

0reactions
tsv2013commented, Jun 14, 2021

SurveyJS allows you to get answers on given questions or to construct a form to enter some data. Entered data/answers can be obtained via the survey.data property.

Here is the border of SurveyJS functionality.

After that you can do with the answers anything you need using your custom code: construct email text from the answers and send it using any 3rd party library (client or server - side)

Read more comments on GitHub >

github_iconTop Results From Across the Web

SurveyJS - JavaScript Libraries for Surveys and Forms
Open-source JavaScript form builder libraries that allows you to create unlimited survey forms in a self-hosted form management system with a no-code ...
Read more >
Edit saved survey, jQuery Survey Library Example
for jQuery, Free Online Survey Library Example.
Read more >
JavaScript Libraries for Surveys and Forms - SurveyJS
Open-source JavaScript form builder libraries that allows you to create unlimited survey forms in a self-hosted form management system with a no-code ...
Read more >
Auto-Populate Form Fields, jQuery Example | JS Form Library
Enter a value into a text box below, and this value will be copied into a corresponding survey question. Name: Email: Cars (use...
Read more >
NPS Survey Question, React Example - SurveyJS
Net Promoter Score survey question with multiple follow-up questions and predefined conditional logic, a free example for React.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found