- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2024 08:51 AM
if you are the requester for one catalog and you are the approver as well and when you are trying to approve your own request then there should be an error message saying that "Requester cannot be the Approver"
Chandan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2024 09:32 AM
Hi @SD_Chandan ,
You can achieve this without any coding.
Create a business rule on [sysapproval_approver] table:
In the action, define as below:
Result:
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2024 08:55 AM
what is the solution we can use client script or workflow or ui policy ? .......
suggest the best suitable way
Chandan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2024 09:17 AM
Hi @SD_Chandan
please use following client script of type onchange.
function onSubmit() {
var requester = g_form.getValue('variables.requester');
var reqApprover = g_form.getValue('variables.approver');
if ( reqApprover.toString() == requester.toString() ){
g_form.hideFieldMsg('approver', true);
g_form.showFieldMsg('approver','Approver can not be same as the Requester!','error');
g_form.setValue('variables.approver','');
g_form.getControl('variables.approver').focus();
return false;
}
};
please mark helpful and accept solution if this will helps solve your requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2024 01:45 AM
this is correct but i want to do this for variable requestor_name from catalog and approverfor from sysaproval table
Chandan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2024 02:03 AM
Hi @SD_Chandan ,
You can replace the below provided business rule condition.
Approver is same as Approval for.Requested For(if this field is there on the RITM form)
Mark this as Helpful / Accept the Solution if this helps.