diff --git a/src/UDS.Net.Forms/Models/UDS3/B9.cs b/src/UDS.Net.Forms/Models/UDS3/B9.cs index 647a321a..2d522871 100644 --- a/src/UDS.Net.Forms/Models/UDS3/B9.cs +++ b/src/UDS.Net.Forms/Models/UDS3/B9.cs @@ -189,6 +189,7 @@ public class B9 : FormModel [Display(Name = "Based on the clinician's assessment, at what age did the behavioral symptoms begin?")] [RequiredIf(nameof(DECCLBE), "1", ErrorMessage = "Please provide a value")] + [Range(15, 110)] public int? BEAGE { get; set; } #endregion diff --git a/src/UDS.Net.Forms/Pages/UDS3/B9.cshtml.cs b/src/UDS.Net.Forms/Pages/UDS3/B9.cshtml.cs index 6bcb2686..2469264a 100644 --- a/src/UDS.Net.Forms/Pages/UDS3/B9.cshtml.cs +++ b/src/UDS.Net.Forms/Pages/UDS3/B9.cshtml.cs @@ -41,16 +41,16 @@ public class B9Model : FormPageModel public Dictionary MOMOALSUIBehavior = new Dictionary { - {"0", new UIBehavior { PropertyAttribute = new UIDisableAttribute("B9.ALSAGE") } }, + {"0", new UIBehavior { PropertyAttribute = new UIDisableAttribute("B9.ALSAGE"), InstructionalMessage ="Skip to question 19" } }, {"1", new UIBehavior { PropertyAttribute = new UIEnableAttribute("B9.ALSAGE") } }, - {"9", new UIBehavior { PropertyAttribute = new UIDisableAttribute("B9.ALSAGE") } } + {"9", new UIBehavior { PropertyAttribute = new UIDisableAttribute("B9.ALSAGE"), InstructionalMessage ="Skip to question 19" } } - }; + }; public Dictionary MOMOPARKUIBehavior = new Dictionary { - {"0", new UIBehavior { PropertyAttribute = new UIDisableAttribute("B9.PARKAGE") } }, + {"0", new UIBehavior { PropertyAttribute = new UIDisableAttribute("B9.PARKAGE"), InstructionalMessage = "Skip to question 18"} }, {"1", new UIBehavior { PropertyAttribute = new UIEnableAttribute("B9.PARKAGE") } }, - {"9", new UIBehavior { PropertyAttribute = new UIDisableAttribute("B9.PARKAGE") } } + {"9", new UIBehavior { PropertyAttribute = new UIDisableAttribute("B9.PARKAGE"), InstructionalMessage ="Skip to question 18" } } }; public Dictionary BEHVHALLUIBehavior = new Dictionary