Error Message: onSubmit script error: ReferenceError: g_ui_scripts is not defined: function () { [native code] }Issue <!-- div.margin { padding: 10px 40px 40px 30px; } table.tocTable { border: 1px solid; border-color: #e0e0e0; background-color: #fff; } .title { color: #d1232b; font-weight: normal; font-size: 28px; } h1 { color: #d1232b; font-weight: normal; font-size: 21px; margin-bottom: 5px; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: #cccccc; } h2 { color: #646464; font-weight: bold; font-size: 18px; } h3 { color: #000000; font-weight: bold; font-size: 16px; } h4 { color: #666666; font-weight: bold; font-size: 15px; } h5 { color: #000000; font-weight: bold; font-size: 13px; } h6 { color: #000000; font-weight: bold; font-size:14px; } ul, ol { margin-left: 0; list-style-position: outside; } --> Symptoms Error message activating validation scripts with UI type Mobile/Service Portal Error MessageonSubmit script error: ReferenceError: g_ui_scripts is not defined:function () { [native code] } Release Any release Cause Two separate out of box validation scripts called "Scripts (Plain) with UI Type: Desktop and Mobile/Service Portal need to be present in the instance Resolution In order to resolve this issue. Upload both the out of box validation scripts attached to this knowledge article. Ensure that there are two validation scripts called "Scripts (Plain)" with UI type "Desktop" and "mobile/Service Portal". Additional Information