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
We have a parent/child viewmodel set up so that a parent record can have multiple child records. We need a validation rule on the child record that is only required when a field on the parent has a certain value.
Is this possible?
I've tried this in the child viewmodel: required: { onlyIf: function () { return parent.FieldX() == Value; } }
Where parent is the self variable passed from the parent viewmodel to the child viewmodel. No errors generated, but this still doesn't work.
The text was updated successfully, but these errors were encountered:
We have a parent/child viewmodel set up so that a parent record can have multiple child records. We need a validation rule on the child record that is only required when a field on the parent has a certain value.
Is this possible?
I've tried this in the child viewmodel:
required: { onlyIf: function () { return parent.FieldX() == Value; } }
Where
parent
is theself
variable passed from the parent viewmodel to the child viewmodel. No errors generated, but this still doesn't work.The text was updated successfully, but these errors were encountered: