If state get changes to Closed then all fields make read only in change table

Sirisha Snow
Tera Contributor

Request to provide client script to fulfill the above story in change table. Thanks

1 ACCEPTED SOLUTION

Pratiksha2
Mega Sage

Hello @Sirisha Snow -

I noticed that you marked my answer as helpful.
So if resolves your query then please Accept my solution ‌‌✔️ as well and close the thread to help future readers to understand.

Thank You!

View solution in original post

7 REPLIES 7

kamlesh kjmar
Mega Sage
Mega Sage

Hi Sirisha,

 

Try onLoad client script and use the below script, it will work for you:

 

 

var state = g_form.getValue("state")  
if (state == "3"){   // I am considering '3' is the backend value of closed
g_form.disable();
}

 

 

kamleshkjmar_0-1709202942427.png

 

 

Please Accept the response if this resolves your issue and mark Helpful if this helps.

 

Thanks,

Kamlesh

Harish Bainsla
Kilo Patron
Kilo Patron

Hi you can use ui policy or the script which @Dr Atul G- LNG share its working fine i try on my pdi.

HarishBainsla_0-1709203614890.pngHarishBainsla_1-1709203630252.png

 

Pratiksha2
Mega Sage

Hello @Sirisha Snow -

I noticed that you marked my answer as helpful.
So if resolves your query then please Accept my solution ‌‌✔️ as well and close the thread to help future readers to understand.

Thank You!