Making Details mandatory on popup when Knowledge Article is marked as Not Helpful

Megan6
Tera Contributor

I am trying to make the Details mandatory on the popup when someone marks a Knowledge Article as Not Helpful. I have seen several posts related to this but have not seen quite the solution we are looking for.

Updated the ng-angular template "kb-feedback-task-modal" per the screenshot but it is not working. We successfully made the Details field read only by adding "readonly" in this location but "required" doesn't seem to be working. 

find_real_file.png

find_real_file.png

Thanks!

 

 

8 REPLIES 8

Harish KM
Kilo Patron
Kilo Patron

HI that pop up window comes from a angular template "kb-feedback-task-modal". You need to check this to customise. I am not sure that is possible but you can try

Regards
Harish

MR1
Tera Contributor

@Harish KM 

 

I don't think those messages are getting populated from angular template "kb-feedback-task-modal". There must be something else because I don't see the pop-up windows messages in  that template.

 

Thanks

Harish KM
Kilo Patron
Kilo Patron

Hi you need to clone  Knowledge Article Content widget and in client controller you can make this as mandatory. Look for the below function

    c.submitFeedbackTask = function(){
        if(!c.data.reason){
            c.flagMessage = "${Please provide the mandatory details}";
            $("#detailsComment").focus();
            return false;
        }

// add the below bold statement
        if(!c.data.details){
            c.flagMessage = "${Please provide the mandatory details}";
            $("#detailsComment").focus();
            return false;
        }
        else{
            c.submitted = true;
            c.closePopup();
        }
    }

Regards
Harish

Hi @megan Any update on this? Were you able to do this.?Please close the thread if you got solution

Regards
Harish