Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
None
-
None
-
All
-
-
Small
Description
I have a configuration:
class MyConfig { @Option private boolean checkbox; @Option @ActiveIf(target = "checkbox", value = "true") @Required private String firstField = null; @Option @ActiveIf(target = "checkbox", value = "false") @Required private String secondField = null; }
Expected:
when checkbox = true, firstField is required, and seconField is not required.
Actual
when checkbox = true, firstField is required, and seconField is required too (I see validation error on Cloud).
Can't reproduce the same behavior with talend-component:web,
Also. Note. When initializing firstField and secondField with init value, it can be an empty string, the actual behavior becomes an expected behavior.
Attachments
Issue Links
- is related to
-
TCOMP-2260 Validations on nested attributes are check even if the object is ActiveIf==false
- On Hold