File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed
app/components/forms/orders Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ export default Component.extend(FormMixin, {
386
386
const isConsentFormFieldValidation = {
387
387
rules : [
388
388
{
389
- type : 'checkbox ' ,
389
+ type : 'checked ' ,
390
390
prompt : this . l10n . t ( 'Please enter Code of conduct consent.' )
391
391
}
392
392
]
@@ -396,8 +396,7 @@ export default Component.extend(FormMixin, {
396
396
optional : true ,
397
397
rules : [
398
398
{
399
- type : 'regExp' ,
400
- value : compulsoryProtocolValidUrlPattern ,
399
+ type : 'checked' ,
401
400
prompt : this . l10n . t ( 'Please consent to the Refund Policy.' )
402
401
}
403
402
]
@@ -531,24 +530,16 @@ export default Component.extend(FormMixin, {
531
530
validationRules . fields [ validationRuleKey ] = validationMap [ fieldIdentifier ] ;
532
531
} else {
533
532
if ( field . type === 'checkbox' ) {
534
- validationRules . fields [ `${ field . fieldIdentifier } _required_${ index } ` ] = {
535
- rules : [
536
- {
537
- type : 'checkbox' ,
538
- prompt : this . l10n . t ( 'Please select your {{field}}.' , { field : field . name } )
539
- }
540
- ]
541
- } ;
542
- } else if ( field . type === 'boolean' ) {
543
533
validationRules . fields [ `${ field . fieldIdentifier } _required_${ index } ` ] = {
544
534
rules : [
545
535
{
546
536
type : 'checked' ,
547
- prompt : this . l10n . t ( 'Please choosen your {{field}}.' , { field : field . name } )
537
+ prompt : this . l10n . t ( 'Please select your {{field}}.' , { field : field . name } )
548
538
}
549
539
]
550
540
} ;
551
- } else {
541
+ }
542
+ else {
552
543
validationRules . fields [ `${ field . fieldIdentifier } _required_${ index } ` ] = {
553
544
rules : [
554
545
{
You can’t perform that action at this time.
0 commit comments