Omkar Kumbhar
Mega Sage

Hello @Supriya25 ,

Please find the below code modification in ui page.

OmkarKumbhar_0-1673880590688.png

 

You can use 

g_form.setReadOnly(field1,true);

g_form.setReadOnly(field2,true);

g_form.save 

in UI page itself it is working for me you can try and let me know.

 

Thanks,

Omkar

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.