diff --git a/src/public/modules/forms/admin/directiveViews/configure-mobile.client.view.html b/src/public/modules/forms/admin/directiveViews/configure-mobile.client.view.html
index 5322131fee..2fb2c545fc 100644
--- a/src/public/modules/forms/admin/directiveViews/configure-mobile.client.view.html
+++ b/src/public/modules/forms/admin/directiveViews/configure-mobile.client.view.html
@@ -4,7 +4,7 @@
Verified?
@@ -14,7 +14,11 @@
ng-class="field.isVerifiable? 'toggle-selector-on' : ''"
onclick=""
>
-
+
diff --git a/src/public/modules/forms/admin/directives/configure-mobile.client.directive.js b/src/public/modules/forms/admin/directives/configure-mobile.client.directive.js
index a472821408..a27fda5bc6 100644
--- a/src/public/modules/forms/admin/directives/configure-mobile.client.directive.js
+++ b/src/public/modules/forms/admin/directives/configure-mobile.client.directive.js
@@ -14,5 +14,45 @@ function configureMobileDirective() {
name: '=',
characterLimit: '=',
},
+ controller: [
+ '$uibModal',
+ '$scope',
+ '$translate',
+ function ($uibModal, $scope, $translate) {
+ // Get support form link from translation json.
+ $translate('LINKS.SUPPORT_FORM_LINK').then((supportFormLink) => {
+ $scope.supportFormLink = supportFormLink
+ })
+
+ $scope.openVerifiedSMSModal = function () {
+ const isTogglingOnVerifiedSms = !$scope.field.isVerifiable
+ $scope.verifiedSMSModal =
+ isTogglingOnVerifiedSms &&
+ $uibModal.open({
+ animation: true,
+ backdrop: 'static',
+ keyboard: false,
+ templateUrl: 'modules/forms/admin/views/pop-up.client.modal.html',
+ windowClass: 'pop-up-modal-window',
+ controller: 'PopUpModalController',
+ controllerAs: 'vm',
+ resolve: {
+ externalScope: function () {
+ return {
+ title: 'Verified SMS',
+ confirmButtonText: 'OK, Noted',
+ description: `
+ FormSG provides free verified SMS up to 10,000 responses
+ per form. If you expect >10k responses, please contact us
+ to arrange billing for verified SMS. Failure to do so risks your form
+ being deactivated for submissions.
+ `,
+ }
+ },
+ },
+ })
+ }
+ },
+ ],
}
}
diff --git a/src/public/modules/forms/admin/directives/edit-form.client.directive.js b/src/public/modules/forms/admin/directives/edit-form.client.directive.js
index da9f1bd01b..a87dca866f 100644
--- a/src/public/modules/forms/admin/directives/edit-form.client.directive.js
+++ b/src/public/modules/forms/admin/directives/edit-form.client.directive.js
@@ -200,8 +200,7 @@ function editFormController(
backdrop: 'static',
keyboard: false,
templateUrl: 'modules/forms/admin/views/edit-fields.client.modal.html',
- windowClass: 'edit-modal-window full-page-modal modal-on-top',
- backdropClass: 'custom-modal-backdrop',
+ windowClass: 'edit-modal-window full-page-modal',
resolve: {
externalScope: function () {
return {
diff --git a/src/public/modules/forms/admin/views/edit-fields.client.modal.html b/src/public/modules/forms/admin/views/edit-fields.client.modal.html
index 594a27319e..ed1ebe7e34 100644
--- a/src/public/modules/forms/admin/views/edit-fields.client.modal.html
+++ b/src/public/modules/forms/admin/views/edit-fields.client.modal.html
@@ -568,7 +568,7 @@
Verified?