File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -582,7 +582,11 @@ module.exports = {
582
582
} ,
583
583
'crime-location-phone' : {
584
584
className : [ 'govuk-input' , 'govuk-input--width-20' ] ,
585
- validate : [ 'required' , { type : 'maxlength' , arguments : 20 } ]
585
+ validate : [ 'required' , { type : 'maxlength' , arguments : 20 } ] ,
586
+ dependent : {
587
+ field : 'crime-location' ,
588
+ value : 'yes'
589
+ }
586
590
} ,
587
591
'crime-another-location' : {
588
592
isPageHeading : true ,
@@ -646,7 +650,11 @@ module.exports = {
646
650
} ,
647
651
'crime-another-location-phone' : {
648
652
className : [ 'govuk-input' , 'govuk-input--width-20' ] ,
649
- validate : [ 'required' , { type : 'maxlength' , arguments : 20 } ]
653
+ validate : [ 'required' , { type : 'maxlength' , arguments : 20 } ] ,
654
+ dependent : {
655
+ field : 'crime-another-location' ,
656
+ value : 'yes'
657
+ }
650
658
} ,
651
659
'report-person' : {
652
660
mixin : 'radio-group' ,
You can’t perform that action at this time.
0 commit comments