We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 321be19 commit 508a9daCopy full SHA for 508a9da
src/app/registration-form-2/registration-form-2.ts
@@ -104,6 +104,8 @@ export const formSchema = schema<RegisterFormData>((fieldPath) => {
104
);
105
}
106
107
+
108
+ // Disable newsletter topics when newsletter is unchecked
109
disabled(fieldPath.newsletterTopics, (ctx) => !ctx.valueOf(fieldPath.newsletter));
110
});
111
src/app/registration-form-3/registration-form-3.ts
@@ -107,6 +107,8 @@ export const formSchema = schema<RegisterFormData>((fieldPath) => {
112
113
114
// apply child schema for identity checks
0 commit comments