How to make comments mandatory for knowledge feedback task submission

DevenderS
Tera Contributor

Hi Team,

 

I need a help with a requirement where when user submits feedback through employee center portal for a article by clicking on " helpful no " then a popup will come with options this is already there in our system.

I have a issue with making comments mandatory for feedback submission to a article through Helpful No or Rating below 3 stars to article from employee center.

If I make comments mandatory the feedback is still getting submitted when clicked on No thanks or closing the popup (X) by clicking on this or clicking on anywhere without submitting the comments the feedback is getting submitted.

Any help appreciated thanks in advance

13 REPLIES 13

dev_S
Tera Contributor

Hi @Shruti  ,

Thanks for the reply.

I have tried the solution you have provided even though the No Thanks or X button is clickable once the details are submitted but the issue is the feedback task is getting submitted when clicked on anywhere outside the popup without submitting the Details.

As of now I have implemented the mandatory for the details as mentioned in the attached screenshot but I need to restrict the feedback submission only popup should be closed, please refer to the screenshot.
Any help really appreciated, Thanks in advance.

Hi @dev_S ,

Go to the launchFeedbackTaskModal function and comment the highlighted lines and add return

if (!c.submitted) {
                       
                        // c.data.reason = "4";
                        // c.data.details = "";
                        return;
                    }

Shruti_0-1751008321835.png

 

dev_S
Tera Contributor

Hi @Shruti  ,

I have made changes as you have mentioned I think its working as expected now.

Greatly appreciated for the help.

Thank you.