Record is not updating on UI action
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 07:22 AM - edited 03-27-2024 08:16 AM
After adding a text box on a perticular Ui action, values are not getting saved, just setting the value but not getting saved. it sets the value but after reloading the form it is getting disappeared, not saving whatever the user typedin the text box of UI Action. Used current.update(), and action.setRedirectURL(current); however still remain same.
Used the below script :
function popup() {
var gm = new GlideModal("glide_prompt", true, 5000);
gm.setTitle("Please provide a business reason for bypassing CPOC action for the decommission workflow");
gm.setPreference("title", "Reason");
gm.setPreference("onPromptComplete", function(value) {
g_form.setValue('u_reason', value);
var tpsa = g_form.getValue('assigned_to');
g_form.setValue('u_decomm_assignee', tpsa);
g_form.setValue('u_ques_1', 'n/a');
g_form.setValue('u_ques_2', 'n/a');
g_form.setValue('u_choice_4', 'n/a');
});
gm.setPreference("onPromptCancel", function(value) {
alert("You clicked on 'Cancel', value was: " + value)
});
gm.render();
current.update();
action.setRedirectURL(current);
}
0 REPLIES 0