diff --git a/assets/css/everest-forms.scss b/assets/css/everest-forms.scss
index 6c0063911..6b475c224 100644
--- a/assets/css/everest-forms.scss
+++ b/assets/css/everest-forms.scss
@@ -890,6 +890,89 @@
content: "\f147";
}
}
+ .everest-forms-success-message-popup-bg {
+ // z-index:98;
+ background: rgba(0, 0, 0, 0.5);
+ max-width: 100vw;
+ height: 100vh;
+ position: fixed;
+ width: 100%;
+ left: 50%;
+ top: 0;
+ transform: translate(-50%);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-size: calc(10 * 2px) calc(10 * 2px);
+
+ .everest-forms-success-message-popup {
+ z-index: 99999 !important;
+ height: auto;
+ gap: 24px;
+ background: #ffffff;
+ border-radius: 8px;
+ width: 386px;
+ display: flex;
+ flex-direction: column;
+ user-select: none;
+ transition: all ease-in-out .8s;
+ padding: 20px 20px 54px 20px;
+
+
+ .everest-forms-success-message-popup-top{
+ color: white;
+ padding: 13px var(--default-padding);
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ cursor: default;
+ user-select: none;
+
+ .everest-forms-success-popup-close-button {
+ cursor: pointer;
+ width: 16px;
+ height: 16px;
+ padding: 0;
+ margin: 0;
+ color: #000000;
+ }
+ }
+
+ .everest-forms-success-message-popup-logo {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ padding: 0;
+ }
+ .everest-forms-success-message-popup-text {
+ display: flex;
+ justify-content: center;
+ flex-direction: column;
+ width: 346px;
+ height: 96px;
+ width: 100%;
+ max-width: 346px;
+ height: auto;
+ gap: 8px;
+ opacity: 0px;
+
+ .everest-forms-success-message-popup-text-status{
+ font-family: Inter;
+ font-size: 24px;
+ font-weight: 500;
+ line-height: 36px;
+ text-align: center;
+ }
+ .everest-forms-success-message-popup-text-message{
+ font-family: Inter;
+ font-size: 15px;
+ font-weight: 400;
+ line-height: 26px;
+ text-align: center;
+ }
+ }
+ }
+ }
.everest-forms-notice--warning {
background-color: $orange;
diff --git a/assets/images/green-check-success.svg b/assets/images/green-check-success.svg
new file mode 100644
index 000000000..96a7e364f
--- /dev/null
+++ b/assets/images/green-check-success.svg
@@ -0,0 +1,9 @@
+
diff --git a/assets/images/popup-close-button.svg b/assets/images/popup-close-button.svg
new file mode 100644
index 000000000..446188711
--- /dev/null
+++ b/assets/images/popup-close-button.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/js/frontend/ajax-submission.js b/assets/js/frontend/ajax-submission.js
index 234c618b0..fd166e895 100644
--- a/assets/js/frontend/ajax-submission.js
+++ b/assets/js/frontend/ajax-submission.js
@@ -76,7 +76,7 @@ jQuery( function( $ ) {
if ( errors.length > 0 ) {
$( [document.documentElement, document.body] ).animate({
- scrollTop: errors.last().offset().top
+ scrollTop: errors.last().offset().top-100
}, 800 );
return;
}
@@ -117,6 +117,7 @@ jQuery( function( $ ) {
let pdf_download_message = '';
let quiz_reporting = '';
let preview_confirmation = '';
+ let message_display_location = '';
if(xhr.data.form_id !== undefined && xhr.data.entry_id !== undefined && xhr.data.pdf_download == true){
pdf_download_message = '
' + xhr.data.pdf_download_message + '';
}
@@ -128,6 +129,9 @@ jQuery( function( $ ) {
preview_confirmation = xhr.data.preview_confirmation;
}
+ if( xhr.data.message_display_location !== undefined ){
+ message_display_location = xhr.data.message_display_location;
+ }
var paymentMethod = formTuple.find( ".everest-forms-stripe-gateways-tabs .evf-tab" ).has( 'a.active' ).data( 'gateway' );
@@ -154,9 +158,43 @@ jQuery( function( $ ) {
formTuple.trigger( 'evf_process_payment', xhr.data );
return;
}
+
+ //Resets the form fields.
formTuple.trigger( 'reset' );
- formTuple.closest( '.everest-forms' ).html( '