| |||||
| Hi @all, i have an item with two user fields ("A" and "B"). At a defined state ("Draft") the workflow in this item forks out and you can go to state "inAnalysis" or to state "approved". Now we want this functionality: If only the first user field has an entry, the item should only allow a transition to state "approved". If both user fields have an entry, the only possible transition should be to state "inAnalysis". I tried to do this with a field relationship, and wanted to do something like this: If the source field (the user field "B") is empty, the target field is state and has the only entry "approved". But this is not allowed, because the source field has to have any entry. We could have this functionality with an extra field (boolean or such thing), but we dont want to have an extra field Any other idea? Thanks, Jens | |||||
|
| ||||
| Posted By: matthias.rump Posts: 166 / Registered: Mar, 2008 | |||||
| Hi Jens, unfortunately you cannot control the availability of state transitions due to values entered in an Items fields. I requested this feature years ago, and some birds sing it might come with the next I10 releases ( "constraints" is the key). Nevertheless, you can get you stuff working if you implement a pre - event trigger. There is a sample script called "abort.js" that should do it for a start. Define the trigger rule to abort with a custom error message, anytime an time of the defined type tries to enter the [new]State e.g. "approved" and the field "B" is not empty. The only drawback that might annoy your users is that the trigger will fire after the user clicked OK or APPLY not before. HTH Matthias | |||||
![]() |
| ||||||||||
![]() |
| ||||||||||
![]() |
| ||||||||||
![]() |
| ||||||||||
![]() |
| ||||||||||
![]() |
| ||||||||||

