yuuvis® RAD Q&A

0 votes
by (640 points)

Is there some more flexibility in version 4 to control action button behaviors by script?
For example if I need to disable 'Approve' or 'Done' buttons while required fields are not filled, but still to allow the use other action buttons like 'Delegate' or 'Ask for support' or 'Return back'?

1 Answer

0 votes
by (18.5k points)
by (440 points)
Hello Martin,
is scope.actions actually available in BPM Start Forms Scripts (5.20)?

I found this question and answer and thought about using it as a workaround for my former question: https://qa-rad.yuuvis.com/index.php?qa=1249&qa_1=assign-process-model-to-some-but-not-all-object-types&show=1249#q1249 - however it seems that scope.actions is not available in the BPM Start Forms Scripts - console.log(scope) provides actions: undefined

Best,
Clemens
by (18.5k points)
Hello Clemens,

sorry, and yes, scope.actions are not available in the BPM-startfrom.

Best Regards,
Martin
by (440 points)
Hello Martin,
thanks a lot for the fast response!

If anyone comes across this topic and wonders the same thing as we did:
We are going to investigate the interaction of the BPM Form Script directly with Browsers DOM Elements to tweak the availability of the buttons - obviously with that you are leaving the official API which yuuvis is providing to interact with its forms so it will be on you to check that it doesn´t break - but for a simple use case this might suffice (and for us it is only a workaround for a limited time).

Best,
Clemens
...