The CreatorCon Call for Content is officially open! Get started here.

GlideDialog box

surya123
Mega Guru

Hi All

I have a glide dialog box for which i wrote   a ui action and a ui page . What i see is when a user enters something in Description field and without saving the form , clicks on button which will render glide dialog box, then it gives a message as "chnages you have entered will not be saved". How can i make the desc get saved even when the user is not saving but directly clicking on ui action button.

There is some description which also gets added to the descrption field which is based on the data that got created based on UI action. How to concatenate the 1st desc which was entered by user and the second one in case of glide dialog?

1 ACCEPTED SOLUTION

Abhinay Erra
Giga Sage

well that is weird.   It works fine for me. Did you make sure the choice is active and try to clear cache and see if that helps.


View solution in original post

19 REPLIES 19

Abhinay Erra
Giga Sage

You can always add g_form.save(); to save the form.


Hi Abhinay,


I wrote this in the ui action within the function, but it dnt save the value entered in form.


Can you post the code of your UI   action here.


Hi Abhinay


function create() {



var short_text = g_form.getValue("description");


var sysId = typeof rowSysId == 'undefined' ? gel('sys_uniqueValue').value : rowSysId;


var gDialog = new GlideDialogWindow("add_ci_dialogs");


gDialog.setTitle("Create New CI");


gDialog.setSize(500,400);


gDialog.setPreference('sysparm_sysID', sysId);


gDialog.setPreference('sysparm_table', "change_task");


gDialog.setPreference("short_text", short_text);



  g_form.save();


  gDialog.render();


}


whatever is entered in fields of ui page, i was adding to show in desc but then that also removes what is saved earlier.


Can i not have both of them together also?