Hello Community,
How to make 'Comments on the approve' field mandatory before rejecting an approval?
Like
4 comments
13:20 Mar 17, 2021
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
09:51 May 08, 2023
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
17:07 May 16, 2023
HI,
Unfortunately, currently, you cannot do this on a new UI.
Show all comments