- 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 06:10 AM
Hi @User382122
What is your use case? Do you have another button save as draft on place?
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:23 AM
Yes, I created a Ui Action button "Save as Draft".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 06:27 AM
Hi @User382122
We have OOTB Save button , may i know what is need for save draft new UI button. In this case you need to update the global Submit button condition which may impact other modules 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:06 AM
Okay. Let me start from the beginning. I need to create a "Draft button" that when it is clicked is saves as a draft and not in a new state. Let's start here. How can I start this process with creating a new UI action and save in to a draft state. i need to get this working before I move to the global submit button.