Glidewindow catalog client script Onload not working on service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2019 12:49 AM
hi All,
I have created a catalog client script on Load using glidewindow. When i tested on Portal it is triggering the Java console error. Kindly help
function onLoad() {
var dialog = new GlideDialogWindow('EAP_popup');
dialog.setTitle(new GwtMessage().getMessage('Confirmation'));
dialog.setSize(750,1000);
dialog.removeCloseDecoration(); //Remove the dialog close icon
dialog.setPreference('cancel_url', '/google.com');
dialog.render();
}
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2019 12:29 AM
Hi
Try this -
function onLoad() {
// alert(g_form.getDisplayValue("testvar"));
var html = '<div class="panel panel-danger"><div class="panel-heading"><h4 class="panel-title">Terma and conditions</h4></div><div class="panel-body"><div class="alert alert-danger" role="alert">Kindly check the Button or cancel the request<br></div></br>India Service Centre Private Limited (the Company) is committed to develop and sustain highly skilled and competent workforce by supporting learning and development for managers and employees in an open and non-discriminatory manner.</br></br>We have now automated the Education assistance approval process for you. This will help you get automatic updates regarding the status of your approval application. Please ensure to read the Education Assistance Standard before applying.</br></br><input type="checkbox" name="agree" value="agree" ng-model="c.data.agree"</input><span style="color: blue">Yes, Ive read the Education Assistance Standard Policy.</span></div><div class="panel-footer text-right"><button class="btn btn-secondary"ngclick="c.closemodal()">${cancel</button><button class="btn btn-primary" ng-click="c.closemodal()">${OK}</button></div></div>';
spModal.open({
title: 'Testing',
message:html,
buttons: [
{label:'OK', cancel: true},
{label:'Cancel', primary: true}
],
}).then(function(){
alert("Hi");//redirect from here onclick of Cancel
});
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2019 11:11 PM
Hi
Can you mark correct answer if this response helped you?
Regards,
Omkar Mone