- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2019 11:12 PM
Hi All,
We have enabled the property to take the survey from portal. We are using OOB take_survey page and Take Survey Widget for taking the survey. There is a Submit button in the page. This Submit button is disabled until user answers mandatory question. Once the mandatory questions are answered Submit button will enable and then user can submit the survey.
But now, they do not want this feature and Submit button should be enabled all the time and if mandatory questions are not answered, pop up message should be displayed.
Can you please help me here.
Thanks,
Maddy
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2019 11:26 PM
Hi
Clone the Take Survey Widget, There you have 2 Angular Providers in the related list -
in spSurveyForm provider, try to remove/comment the line highlighted below,
This will not check the mandatory one's, there only try to give a pop up with spModal.open();
For modal check this link -
https://developer.servicenow.com/app.do#!/api_doc?v=kingston&id=SPM-open_O
For testing you can put alert() as well.
Let me know incase of any queries.
Regards,
Omkar Mone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2019 11:18 PM
Hi,
I think you need to clone your widget to achieve your requirement.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2019 11:26 PM
Hi
Clone the Take Survey Widget, There you have 2 Angular Providers in the related list -
in spSurveyForm provider, try to remove/comment the line highlighted below,
This will not check the mandatory one's, there only try to give a pop up with spModal.open();
For modal check this link -
https://developer.servicenow.com/app.do#!/api_doc?v=kingston&id=SPM-open_O
For testing you can put alert() as well.
Let me know incase of any queries.
Regards,
Omkar Mone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2019 11:44 PM
Hi Omkar,
Thanks for your help. It worked.
Thanks,
Maddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 05:57 AM
I know this is an old question, that has an answer, but surely the answer here should have been to make the questions not mandatory?