Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork98
How to apply a conditional rule on a multilingual field for a single language#439
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hello vueform team, {"field": {"type":"t-text","rules": {"en": [{"required": [["someOtherField","empty"]] },"max:100"],"fr": ["max:100"] } },"someOtherField": {"type":"text" }} I have also tried these variations: "en": [[{"required": [["someOtherField","empty"]] }]]"en": [{"required": [["someOtherField","==","" ]] }] But I keep running into this error once I modify the second field: Uncaught (in promise) TypeError: this.element$.Validators.forEach is not a function @adamberecz could you please advise if I am using a correct syntax as I couldn't find a similar example in the docs? |
BetaWas this translation helpful?Give feedback.
All reactions
Apparently there is a bug with multilingual rules. Opened anissue for it.
Replies: 1 comment
-
Apparently there is a bug with multilingual rules. Opened anissue for it. |
BetaWas this translation helpful?Give feedback.