diff --git a/api/src/Page/Contact.php b/api/src/Page/Contact.php
index 2136b5f00..3b1159550 100644
--- a/api/src/Page/Contact.php
+++ b/api/src/Page/Contact.php
@@ -9,8 +9,8 @@ class Contact extends Page
{
public static $arg_list = array('CARDNAME' => '([\w\s\-])+',
- 'FAMILYNAME' => '([\w\-])+',
- 'GIVENNAME' => '([\w\-])+',
+ 'FAMILYNAME' => '([\w\s\-])+',
+ 'GIVENNAME' => '([\w\s\-])+',
'PHONENUMBER' => '.*',
'EMAILADDRESS' => '.*',
'LABNAME' => '([\w\s\-])+',
diff --git a/client/src/js/models/labcontact.js b/client/src/js/models/labcontact.js
index b2eff310d..9a56f9923 100644
--- a/client/src/js/models/labcontact.js
+++ b/client/src/js/models/labcontact.js
@@ -14,11 +14,11 @@ define(['backbone'], function(Backbone) {
},
FAMILYNAME: {
required: true,
- pattern: 'wwdash',
+ pattern: 'wwsdash',
},
GIVENNAME: {
required: true,
- pattern: 'wwdash',
+ pattern: 'wwsdash',
},
PHONENUMBER: {
required: true,
diff --git a/client/src/js/modules/shipment/models/dispatch.js b/client/src/js/modules/shipment/models/dispatch.js
index 195045bf3..bfbc37c60 100644
--- a/client/src/js/modules/shipment/models/dispatch.js
+++ b/client/src/js/modules/shipment/models/dispatch.js
@@ -24,12 +24,12 @@ define(['backbone'], function(Backbone) {
GIVENNAME: {
required: function () {return this.dispatchDetailsRequired},
- pattern: 'wwdash',
+ pattern: 'wwsdash',
},
FAMILYNAME: {
required: function () {return this.dispatchDetailsRequired},
- pattern: 'wwdash',
+ pattern: 'wwsdash',
},
PHONENUMBER: {
diff --git a/client/src/js/modules/shipment/views/dispatch.js b/client/src/js/modules/shipment/views/dispatch.js
index 113415195..416375168 100644
--- a/client/src/js/modules/shipment/views/dispatch.js
+++ b/client/src/js/modules/shipment/views/dispatch.js
@@ -276,6 +276,7 @@ define(['marionette', 'views/form',
this.dispatchCountry = this.ui.country.val()
this.ui.courierSection.show();
this.ui.dispatchDetails.show();
+ this.model.visitRequired = true
this.model.dispatchDetailsRequired = true
this.ui.submit.show();
if (
@@ -334,6 +335,7 @@ define(['marionette', 'views/form',
){
this.model.visitRequired = false
this.ui.dispatchDetails.hide()
+ this.model.dispatchDetailsRequired = false
this.ui.submit.text("Proceed")
this.ui.shippingadvice.html("On clicking 'Proceed' you will be redirected to the new Diamond shipping service to book the shipment. Please ensure all stages of the form are completed.
")
}