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
Answer all required questions with these specifically:
Question 11 DECCLBE = 1
Answer all sub-questions of Question 12
Answer Question 13
Answer Question 14 DECCLMOT = 0
Question 15 sub-questions are correctly disabled
Questions 16, 17, 18 are correctly disabled
Answer the remaining required questions
Save form as finalized
MOMODE, MOMOPARK, MOMOALS are incorrectly requiredIf
Looking at the code you can see that COURSE and FRSTCHG are also incorrectly requiredIf, but that error is not seen because those would be required on finalized no matter what.
You can see the required annotations are using incorrect properties:
[Display(Name = "Indicate the mode of onset for the most prominent motor problem that is causing the participant's complaints and/or affecting the participant's function.")]
[RequiredIf(nameof(DECCLBE), "1", ErrorMessage = "Value required")]
public int? MOMODE { get; set; }
[Display(Name = "Indicate mode of onset for the most prominent motor problem that is causing the participant's complains and or affecting the participant's function - Other, specify")]
[RequiredIf(nameof(MOMODE), "4", ErrorMessage = "Value required")]
[MaxLength(60)]
public string? MOMODEX { get; set; }
[Display(Name = "Were changes in motor function suggestive of parkinsonism?")]
[RequiredIf(nameof(DECCLBE), "1", ErrorMessage = "Value required")]
public int? MOMOPARK { get; set; }
[Display(Name = "Were changes in motor function suggestive of amyotrophic lateral sclerosis?")]
[RequiredIf(nameof(DECCLBE), "1", ErrorMessage = "Value required")]
public int? MOMOALS { get; set; }
[Display(Name = "Overall course of decline of cognitive / behavioral / motor syndrome")]
[RequiredIf(nameof(DECCLBE), "1", ErrorMessage = "Value required")]
public int? COURSE { get; set; }
[Display(Name = "Indicate the predominant domain that was first recognized as changed in the participant")]
[RequiredIf(nameof(DECCLBE), "1", ErrorMessage = "Value required")]
public int? FRSTCHG { get; set; }
Correct behavior
MOMODE, MOMOPARK, MOMOALS should only be required if DECCLMOT = 1
COURSE and FRSTCHG do not need RequiredIf annotations
The text was updated successfully, but these errors were encountered:
@ashleybot I have this one ready for review! I was looking at the documentation and it appears
COURSE and FRSTCHG should be required if DECCLIN has a value of 1.
Steps to replicate:
You can see the required annotations are using incorrect properties:
Correct behavior
The text was updated successfully, but these errors were encountered: