State transition on new record form not working

eyal abu hamad
Mega Sage

Hey, I created new state flow but it seems that it dose not work on new record form. only after I save the record it apply the state flow.
why is that ?

eyalabuhamad_0-1705564213141.png

 

2 ACCEPTED SOLUTIONS

Maik Skoddow
Tera Patron
Tera Patron

Hi @eyal abu hamad 

yes this is correct. A new record has no value, and thus no conditions can be applied. Furthermore, state flows work on the server side and this requires any record operations like saving or updating.

Maik

View solution in original post

Hi,

What you can do is make state field readonly on New Form or hide it completely.

Also you may remove unwanted options by checking g_form.isNewRecord() in onLoad client script.

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

7 REPLIES 7

Hi,

What you can do is make state field readonly on New Form or hide it completely.

Also you may remove unwanted options by checking g_form.isNewRecord() in onLoad client script.

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

@eyal abu hamad Thank you for marking my response as correct solution and glad to know it helped you to resolve your issue.

I would appreciate your king gesture if you could mark @Maik Skoddow  first answer correct as well (your can mark multiple correct answers), as he confirmed and answers your first question about system behaviour.

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Dr Atul G- LNG
Tera Patron
Tera Patron

Experts already answered, but my thought it will a new customization and new state required changes in 

Reports

SLA

Scripts

Flow 

ACL 

 

So before you create a new state, what value it servers. 

*************************************************************************************************************
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]

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