Record is not updating on ui action, any suggestion to resolve.

anupambose
Tera Contributor

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 typed in 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