diff --git a/app/RSpade/Core/Js/Form_Utils.js b/app/RSpade/Core/Js/Form_Utils.js index e835f436b..c05d3f1de 100755 --- a/app/RSpade/Core/Js/Form_Utils.js +++ b/app/RSpade/Core/Js/Form_Utils.js @@ -107,7 +107,7 @@ class Form_Utils { // Resolve the promise once all animations are complete Promise.all(animations).then(() => { // Scroll to error container if it exists - const $error_container = $parent.find('[$sid="error_container"]').first(); + const $error_container = $parent.find('[data-sid="error_container"]').first(); if ($error_container.length > 0) { const container_top = $error_container.offset().top; @@ -345,7 +345,7 @@ class Form_Utils { */ static _apply_combined_error($parent, summary_msg, unmatched_errors) { const animations = []; - const $error_container = $parent.find('[$sid="error_container"]').first(); + const $error_container = $parent.find('[data-sid="error_container"]').first(); const $target = $error_container.length > 0 ? $error_container : $parent; // Create alert with summary message and bulleted list of unmatched errors @@ -386,7 +386,7 @@ class Form_Utils { const animations = []; // Look for a specific error container div (e.g., in Rsx_Form component) - const $error_container = $parent.find('[$sid="error_container"]').first(); + const $error_container = $parent.find('[data-sid="error_container"]').first(); const $target = $error_container.length > 0 ? $error_container : $parent; if (typeof messages === 'string') {