- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 06:02 AM
Hello,
I have a requirement to save a cr in draft state. However, I need to hide the global submit button when saved as a drafted but when it is submitted after saving as a draft I need to make the global submit button visible.
Please Help!!
Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 10:04 AM - edited 02-28-2024 10:07 AM
Adding a new state "Draft" means you are introducing a new model state, so based on the change management flow, you have to create/update various objects like model state, model state transitions and workflow/or/flow ( whichever applied )
Example for New, similar create for "Draft" and mark it "Initial state" true and add new transitions, you might need to update other model state transitions for "Draft".
Build step by step and review and update, if something broken.
Note: You have to create this model for each change type ( e.g. Normal, Emergency ),whichever applicable.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 10:23 AM
I understand your problem buddy but for this you need to add new state Draft as well, and need to add that in state model. if you are using change model.
It will be a pure customization.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 09:14 AM
Hi @User382122
This is what we have question
What is purpose of UI Action,
OOTB we have save button. Once you click on save, change will be in new state. either you click on submit still change will be in new state.
Did you created a new State with name Draft as well?
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 09:49 AM
Thanks for all your help thus far. I understand the save. However, the ui that I create "Save as Draft" when clicked with be in the state of draft... I dont want it to create a new record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 10:04 AM - edited 02-28-2024 10:07 AM
Adding a new state "Draft" means you are introducing a new model state, so based on the change management flow, you have to create/update various objects like model state, model state transitions and workflow/or/flow ( whichever applied )
Example for New, similar create for "Draft" and mark it "Initial state" true and add new transitions, you might need to update other model state transitions for "Draft".
Build step by step and review and update, if something broken.
Note: You have to create this model for each change type ( e.g. Normal, Emergency ),whichever applicable.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 10:23 AM
I understand your problem buddy but for this you need to add new state Draft as well, and need to add that in state model. if you are using change model.
It will be a pure customization.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 06:32 AM - edited 02-28-2024 06:33 AM
Hi @User382122 ,
How are you differentiating the state New and Draft. Are you creating a new state for draft and updating the change model transitions.
Save in New state is same as Draft.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution