how to stop the form submission

saikumarkak
Tera Contributor

saikumarkak_0-1747033802016.png

when i click on save button it will show the error message without filling the mandatory field

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hii @saikumarkak 

The expected behaviors are assigned as mandatory, which you need to complete first in order to proceed further.

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

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

mohdarbaz
Kilo Guru

Hi @saikumarkak ,

 

Use onsubmit client script, and return false; statment to stop the form submission.

 

Accept the solution and mark as helpful if it does, to benefit future readers

 

Regards,

Mohd Arbaz.

saikumarkak
Tera Contributor

@mohdarbaz 
no it does not stop the form submission in workspace