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
'Check this box to simulate a validation failure. The save button should remain enabled after the failure.',
19
+
},
20
+
defaultValue: false,
21
+
},
22
+
{
23
+
name: 'validatedField',
24
+
type: 'text',
25
+
admin: {
26
+
description:
27
+
'This field will fail validation if "Fail Validation" checkbox is checked. This simulates validation failures from business logic, network errors, or third-party validation.',
28
+
},
29
+
validate: ((value,{ data })=>{
30
+
if((dataasany)?.failValidation){
31
+
return'Validation failed: simulated validation error to test save button behavior.'
* Check this box to simulate a validation failure. The save button should remain enabled after the failure.
388
+
*/
389
+
failValidation?: boolean|null;
390
+
/**
391
+
* This field will fail validation if "Fail Validation" checkbox is checked. This simulates validation failures from business logic, network errors, or third-party validation.
* Check this box to simulate a validation failure. The save button should remain enabled after the failure.
407
+
*/
408
+
failValidation?: boolean|null;
409
+
/**
410
+
* This field will fail validation if "Fail Validation" checkbox is checked. This simulates validation failures from business logic, network errors, or third-party validation.
* Check this box to simulate a validation failure. The save button should remain enabled after the failure.
426
+
*/
427
+
failValidation?: boolean|null;
428
+
/**
429
+
* This field will fail validation if "Fail Validation" checkbox is checked. This simulates validation failures from business logic, network errors, or third-party validation.
0 commit comments