Saving a CR in draft state and hiding global submit button when clicked

User382122
Tera Contributor

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! 

2 ACCEPTED SOLUTIONS

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.

 

AshishKMishra_0-1709143269105.png

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

View solution in original post

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]

****************************************************************************************************************

View solution in original post

10 REPLIES 10

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]

****************************************************************************************************************

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. 

 

 

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.

 

AshishKMishra_0-1709143269105.png

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

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]

****************************************************************************************************************

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