Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3308 | Rev 3371 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3308 Rev 3335
Línea 234... Línea 234...
234
            <FormTabPanel value={3} index={currentTab}>
234
            <FormTabPanel value={3} index={currentTab}>
235
              <CheckboxInput
235
              <CheckboxInput
236
                label='Notificación 10 min antes'
236
                label='Notificación 10 min antes'
237
                name='notification_10min_before'
237
                name='notification_10min_before'
238
                control={control}
238
                control={control}
239
                rules={{
-
 
240
                  validate: (value, formValues) => {
-
 
241
                    if (!value && !formValues.notification_30min_before) {
-
 
242
                      return 'Debe seleccionar al menos una opción'
-
 
243
                    }
-
 
244
                    if (value && formValues.notification_30min_before) {
-
 
245
                      return 'No se puede seleccionar ambas opciones simultáneamente'
-
 
246
                    }
-
 
247
                    return true
-
 
248
                  }
-
 
249
                }}
-
 
250
              />
239
              />
251
              <CheckboxInput
240
              <CheckboxInput
252
                label='Notificación 30 min antes'
241
                label='Notificación 30 min antes'
253
                name='notification_30min_before'
242
                name='notification_30min_before'
254
                control={control}
243
                control={control}