SDK 1.9.0 - Mandatory fields and stars - Best User Experience #886
-
Hello, First, what was the choice for eNotices2 Preview ?
Example : For notice type 16 is it better if all fields in GR-Lot-PlannedDuration have a star OR none of them ? (BT-538-Lot is mandatory in fields.json but it is also forbidden under certain conditions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The general logic is to first consider whether the field is forbidden, and if it is not, then consider whether it is mandatory. As shown in your screenshot, option 1 gives misleading information: the 4 fields cannot be filled in all together. |
Beta Was this translation helpful? Give feedback.
The general logic is to first consider whether the field is forbidden, and if it is not, then consider whether it is mandatory.
So BT-538-Lot is forbidden if the condition is true (it makes no sense to indicate "another duration" if the duration is set in BT-36-Lot). And if it is not forbidden, then it is mandatory.
As shown in your screenshot, option 1 gives misleading information: the 4 fields cannot be filled in all together.
So option 2 is the way to go, with the following precision (you might have implied it): "EXCEPT if they have a "forbidden" condition for the noticeType"