- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 07:22 AM
Hello experts.
Any help appreciated.
Add two fields
Expedite_code (u_expedite_code)
Employee Relations
Regulatory Compliance
Security
Expedite_justification (u_expedite_justification)
Create UI action link “Expedite” (available to demand coordinators group, and the assigned demand manager)
This will ask for reason code and text (both required) and move the demand to “Approved”.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 07:56 AM - edited 09-18-2023 08:06 AM
Hi @shaik23 ,
Try the UI Action as shown in the screen shots below.
- In the condition field change the demand coordinators group name as per your configuration.
- Script:
function moveToApproved(){
g_form.setValue("state", "8");
g_form.setMandatory("u_expedite_code", true);
g_form.setMandatory("u_expedite_justification", true);
gsftSubmit(null, g_form.getFormElement(), 'state_demand_expedite');
}
if (typeof window == 'undefined')
updateAndRedirect();
function updateAndRedirect() {
current.setValue("state", "8");
current.update();
action.setRedirectURL(current);
}
Please mark my answer helpful and accept as solution if it helped you 👍✔️
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 07:56 AM - edited 09-18-2023 08:06 AM
Hi @shaik23 ,
Try the UI Action as shown in the screen shots below.
- In the condition field change the demand coordinators group name as per your configuration.
- Script:
function moveToApproved(){
g_form.setValue("state", "8");
g_form.setMandatory("u_expedite_code", true);
g_form.setMandatory("u_expedite_justification", true);
gsftSubmit(null, g_form.getFormElement(), 'state_demand_expedite');
}
if (typeof window == 'undefined')
updateAndRedirect();
function updateAndRedirect() {
current.setValue("state", "8");
current.update();
action.setRedirectURL(current);
}
Please mark my answer helpful and accept as solution if it helped you 👍✔️
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 07:36 AM
Working perfectly 👍
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 07:38 AM
@shaik23 I'm glad this helped 😀👍
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 03:46 AM
Hi @AnveshKumar M ,
I have a similar issue. If you can help me here please? State does not change.
Thanks you for the help!