Popup window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2016 10:26 PM
Hi All,
I have a requirement that a popup window to come when a dropdown value is selected as "other" with a link side the popup window.
Can anyone please help me with this.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 04:53 AM
Hi Arnab ,
Thank you for your response.
yes i created one UI page and called it in my client script.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 07:46 AM
Ankita,
Could you achieve what you expected?
Please let me know
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2016 03:26 AM
Hi Arnab,
My requirement was:
What I wrote is as below:
Catalog Client Script:(On change of the variable)
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
//Type appropriate comment here, and begin script below
var val = g_form.getValue("test");
if(val == "other"){
var gdw = new GlideDialogWindow('test_dailogue');
gdw.setTitle('test');
gdw.setSize(750,300);
gdw.render();
}
}
Ui page :
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:ui_form>
<j:set var="jvar_i" value ="-1" />
<j:set var="jvar_row_count" value="" />
<j:set var="jvar_sys_id" value="${RP.getWindowProperties().get('sys_id')}" />
<style type="text/css">
table{
border-spacing:1px;
}
tr.section{
background:#606060;
color:white;
}
</style>
<table width="80%" cellpadding="5" border="0">
<input type="hidden" name="cancel_or_submit" id="cancel_or_submit" value=""/>
<input type="hidden" name="po_sys_id" id="po_sys_id" value="${jvar_sys_id}"/>
<tr id="inputs">
<td colspan="2" width="50%" align="left">
Please vist the <a href="test.com" target="_blank"> My Benefits Page </a>for the list of requirements
for other relationships.
</td>
</tr>
<tr id="buttons">
<td colspan="4" align="center">
<button type="submit" id="submit_popup" name="submit_popup" onclick=" return lanesdownload();">${gs.getMessage('OK')}</button>
<!-- <g:dialog_buttons_ok ok="return validateComments()" ok_type="button" /> -->
</td>
</tr>
</table>
</g:ui_form>
</j:jelly>
Client Script in UI page:
function lanesdownload(type) {
//download();
GlideDialogWindow.get().destroy();
return false;
}
It is more or less the same what you said to do.
Thanks.