Take Survey Widget

madanm7786
Mega Guru

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

1 ACCEPTED SOLUTION

Omkar Mone
Mega Sage

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, 

find_real_file.png

 

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

View solution in original post

4 REPLIES 4

Varsha Jadhav1
Giga Expert

Hi,

I think you need to clone your widget to achieve your requirement.

Omkar Mone
Mega Sage

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, 

find_real_file.png

 

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

Hi Omkar,

Thanks for your help. It worked.

Thanks,

Maddy

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?