Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Make Rejection comment mandatory in service portal

abirakundu23
Giga Sage

Hello All/ @Ankur Bawiskar  / @Mohith Devatte ,

We want to make mandatory field for Highlighted line as per attached screenshot.

We use the Following syntax .

    // For Our Rejection
         data.CONST = {
        i18n: {
            PLACEHOLDER_MESSAGE: gs.getMessage("If you are rejecting the request, provide the reason here."),
            REJECT_MODAL_TITLE: gs.getMessage("Reject Request"),
            REJECT_MODAL_MESSAGE: gs.getMessage("Please provide a reason for rejecting the request"),
            REJECT_MODAL_CANCEL: gs.getMessage("Cancel"),
            REJECT_MODAL_SUBMIT: gs.getMessage("Reject Request")
        },
        ACTION: "updateReject",
              REJECT_STATE: "rejected",
        APPROVED_STATE: "approved",
        REQUESTED_STATE: "requested",
        APPROVAL_TABLE: "sysapproval_approver"
             
    };

find_real_file.png

7 REPLIES 7

Ankur Bawiskar
Tera Patron

Hi,

this is for which page?

check this out

How to make rejection comments mandatory on Service Portal

regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 we have added code in widget but we need to add mandatory * before highlighted line.

From where we need to add, could you please guide me ?

Hi,

you didn't mention which page is that?

regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Any solution for this.