You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to get the target field's label from its vid in getMessage function? I'm writing a cross-field custom rule, e.g after_date:target_field. What I want to achieve is to return a message like {validatingFieldLabel} should be after {targetFieldLabel}.
Any help is appreciated!
Pseudo code:
Validator.extend('after_date',{getMessage(validatingFieldLabel,[targetFieldVid]){// How to get targetFieldLabel from targetFieldVid?return`{validatingFieldLabel} should be after {targetFieldLabel}`},validate(after,[before]){// Validation logic here}},{hasTarget: true})
The text was updated successfully, but these errors were encountered:
Is there a way to get the target field's label from its vid in
getMessage
function? I'm writing a cross-field custom rule, e.gafter_date:target_field
. What I want to achieve is to return a message like {validatingFieldLabel} should be after {targetFieldLabel}.Any help is appreciated!
Pseudo code:
The text was updated successfully, but these errors were encountered: