Make Comments Field Required when Approval gets rejected

Hello Community,

 

How to make 'Comments on the approve' field mandatory before rejecting an approval?

 

Like 1

Like

4 comments

can try a business rule on the approval object for status = negative , make comments mandatory. not sure if this will work on the prompt!

Hello,

 

You need to create a replacing view model for PreconfiguredApprovalPage and add a code similar to this one:

attributes:{
				"Comment":{
					"dataValueType": this.Terrasoft.DataValueType.TEXT,
					"isRequired": {"bindTo":"isCommentRequired"}
                }
          },
          methods: {
            isCommentRequired: function(){
				if (this.get("Status").displayValue=="Negative"){
				return true;
                } else {
				return false;
                }
            }
          },

In this case when the reject button is clicked the field should be filled in:

Best regards,

Oscar

Hi,

I need same functionality in the freedomUI. What changes need to be done?. I tried with the above code mentioned, but it's not working.

Please let me know if there is any way.



Thanks.

Regards,

Manideep

HI,

Unfortunately, currently, you cannot do this on a new UI.

Show all comments