JS Approvals
Accepted answer

Comments

Thought so :( Tnx

You could use Java insted. See https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/

Thinking again, approvals are not attribute based, so you will probably have no luck with a value provider and will have to use other techniques like this: https://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/

I was looking to set read only on certain fields if work item is approved.

I have not tried that. You could try if you can implement a condition in Java similar to https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ and if that works for you. I tried this approach and it worked for me for roles, which you can also not access in JavaScript.

Will try that. Hope it will work.