How to apply a conditional rule on a multilingual field for a single language #439
-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Apparently there is a bug with multilingual rules. Opened an issue for it. |
Beta Was this translation helpful? Give feedback.
Apparently there is a bug with multilingual rules. Opened an issue for it.