I want to change the rendering of the form fields based on workflow state.
I thought of the following.
- Write a js to call an api to get updated attributes for a form based on workflow state. This association of workflow state and fields attributes will be maintained in python code.
- Validate change permitted in
validatefunction based on data stored in db and in memory copy via json patch libs to compute diff.
So the question is
- Is there a better approach available?
- Is there a pre build function available in the framework to update attributed of form in bulk approach.
- P.S. i am looking to change readonly and mandatory attributes.