create problem from case

ammar_k
Tera Contributor

Hello, 

we use a UI Action to create a problem from case, this button however, will create and save an empty problem in the data base even before filling and saving ( submitting) the form, the result is empty problems without the mandatory field.

I changed the script in the UI Action to this one : 

function onClick(g_form) {
var newRecord = new GlideRecord("problem");
newRecord.initialize();
action.openGlideRecord(newRecord);
}
but it doesn't work, I tried with a business rule that runs after saving the record to delete an empty problem but this deletes the problems before start filling the form.

do you have any ideas how to fix this issue ? 

thank you 
0 REPLIES 0