Adding a validation check on a survey question whether the question value is empty before submitting a survey in service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2018 11:33 PM
Hi,
We have a requirement where we have a survey in the service portal which contains a comment field or question. We want to add a validation on the Comments Question in the survey form before submitting the survey.The validation will check whether the Comments Question in the survey form is empty when the user submits the survey,if the comments question is empty then the user should get an alert that whether they want to submit the survey without filling the comments.If the Comments Question is already filled by the user then while submitting the survey he should not receive the alert.We want this scenario in our Service Portal Survey and itil view survey as well.Please advise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2018 01:21 AM
Hello,
Please refer the below url :
https://scotch.io/tutorials/angularjs-form-validation
Mark this reply helpful if it answers your question
Regards,
Swathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 11:34 PM
Hello @arundhatimaitra
If comment validation is still relevant for you, please look in my attached screens.
To enable validation for any survey questions, you must configure a validator. In the configuration of each question for which you want to add a validator.
In my example there is a very simple validator. User have to provide a comment with a minimum 10 characters length.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 11:53 PM
Heyy i am doing same but not able to create a new validation.