In survey we have some mandatory fields but when error message come how to edit that message

viigate
Mega Contributor

Hello All,

As per below screen shot   you all can see this error message when any mandatory field is not fill, do any one have any idea how to edit this display message when any survey is taken.

find_real_file.png

Thanks & Regards,

Viraj Hudlikar.

1 ACCEPTED SOLUTION

Sumanta Sathua
ServiceNow Employee
ServiceNow Employee

The UI page called assessment_take2 when the user taking the survey . So navigate to   "UI Pages" -> Search by name "assessment_take2" . Open the page and go to the client script .



The function showInvalidFieldsMessage() hold the message that you   can edit to show the   message as you like .



  if (numInvalidResponses > 0) {


  var msg = assessableLabel + ' ' + numInvalidResponses + ' invalid response';


  g_form.addErrorMessage('There are invalid responses in the following areas:');



You can edit the above error message .



Thanks


View solution in original post

5 REPLIES 5

summ very perfect thanks once again