UI action - GlideModal

Andrew_TND
Mega Sage
Mega Sage

Hello, I'm having some problems with a UI action.

The project_change_request form loads no problem I just cant seem to get the fields to auto populate... I also need the parent project record passed to the the other table too in the parent field.

Thanks in advance.

 

function clickDialog() {

    var sysid = g_form.getUniqueValue();

    var window = new GlideModal("project_change_request");
    window.setTitle('Milestone Approval');
    window.setSize(800, 350);
    window.setPreference("sysparm_view", "milestone_approval");
    window.setPreference("sysparm_u_milesone_record", sysid);
    window.render();
};

 

 

6 REPLIES 6

Thats more or less what I'm after but I cant get the current pm_project_task sys_id to populate when the modal loads, can you paste an example of the script you used?

Hi @Andrew_TND 

It seems like I’m missing some details about your scenario to provide the proper snippet of code. Could you clarify which table the modal is displaying and how it’s related to the project_task table? This information would help me better understand your challenge and suggest a more suitable solution.

 

Cheers,

Tai Vu