BT-01(f)-Procedure mandatory in the fields.json but not on the eNotice2 preview site #943
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In the documentation page from your screenshot, there is the following note, indicated with a "CAUTION": "The value of the forbidden property must take precedence over the value the mandatory property. If a field is forbidden, then it should not be present in the notice regardless of the value of its mandatory property. You should always check first if a field is forbidden or not. Then, consider whether the field is mandatory or optional only if the field is not forbidden." In your case, for notice subtype 29, the field BT-01(f)-Procedure is forbidden when BT-01(e)-Procedure is not present. |
Beta Was this translation helpful? Give feedback.
In the documentation page from your screenshot, there is the following note, indicated with a "CAUTION":
"The value of the forbidden property must take precedence over the value the mandatory property. If a field is forbidden, then it should not be present in the notice regardless of the value of its mandatory property. You should always check first if a field is forbidden or not. Then, consider whether the field is mandatory or optional only if the field is not forbidden."
In your case, for notice subtype 29, the field BT-01(f)-Procedure is forbidden when BT-01(e)-Procedure is not present.
When it is not forbidden (so when BT-01(e)-Procedure is present), it is then mandatory.