I have a requirement to prepopulate the survey questions to a particular answer in the backend when user selects Yes option in Are you satisfied with support question in the incident resolution email.Any pointers would be really helpful.We have a UI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 11:59 PM
In the current scenario we have a incident resolution mail which asks the user Are you satisfied with support ? If he selects Yes all survey questions should be prepopulated with Satisified option in the backend (user shouldnt see them) and In English by default.User should be redirected to a prompt (Click here to provide any comments).
In the UI Page we are having a drop down for select language and based on that the questions are showing up.
An onLoad survey client script is hiding all questions before the language is selected and this works if the user select NO in the email but for this scenario (Yes) we need to modify this Ui Page.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2016 12:21 AM
Hi,
If yes is selected then you can modify the ui page by adding only comments field.
And in client script of ui page you disable all the fields having questions by getting id and setting default value.
Thanks
Akhil
Hit Like/Helpful/Correct, if applicable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2016 02:40 AM
Hello saksham,
Are you using the survey designer?
For each field you can define a dependency:
However you cannot auto-populate anything on a condition.
To work around this, you could create a business rule on the table "asmt_metric_result".
The business rule would need to run after an update, checking if that one question has the required value. It would then need to lookup all the other required questions for that same survey instance and change them.
Kind regards,
Michel Conter