Read-Only After Submit

Khalid9030
Tera Contributor

Hello Team,

 

Need help. 

 

When we click the Submit button, the form redirects to the list view, and all fields should become read-only in both the list view and the form view. However, when the user clicks the Save button, all fields remain editable until the Submit button is pressed."

 

How we achieve this ? Please assist me 

9 REPLIES 9

Hi @Khalid9030 

 

Agree, this is client req, but try to get more details that on which basis the fields should be read only , only then we can try in system.

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

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

@Dr Atul G- LNG 
There is no specific conditions it should be work based on the save and submit actions, can we use the ACLs with current.isNewRecord();

Hi @Khalid9030 

 

You can try with ACL but I doubt it will work, bcz the funda is the same, in either case ( submit /save), record is inserted in database.

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

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

@Dr Atul G- LNG 

Sorry,I forget to mention, we have custom UI action called submit when we click on the submit the draft field is becoming false. Now with this condition can we make read only of all fields form view as well list view.

Hi @Khalid9030 

 

Yes , but may I know why all fields are read only? In this case better use the ACL.

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

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