UI Page - Form button not working

User382122
Tera Contributor

Hello, 

 

There is a dialog box that pops up when there is an error that is wrong. The buttons are Submit (As Is) and Submit and use the recommended thing. the form is not processing when the button is submitted. How would I go about fixing this issue. This button was created on the UI page. Here is teh partial script below: 

 

function invokePromptCallBack(type){

var gdw= GlideDialogWindow.get(); 

 

if (type == recommend)

var f = gdw.get Preference('onPromptRecommend');

 

if (typeof(f) == 'function'){

try{

f.call(gdw.gdw.getPreference('oldValue'));

} catch(e) {

}

}

gdw.destroy();

return false;

}

 

 

Can some one please explain to my what this script is doing an how I can fired the submit as is button. 

 

Thanks 

0 REPLIES 0