Action in List context menu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 08:01 AM
Hi,
I'm creating a UI Action (List context menu)to record the comments, then I have to do a GlideRecod to change the status and record the comment in the problem table, but when I run the Action it gives this error:
Hi,
Sorry, follow the code:
function ree_repproval(){
if (confirm('teste ?')){
var reprovacao = prompt("teste ?");
g_form.setReadOnly('u_teste ', false);
g_form.setVisible('u_teste ', true);
g_form.setValue('u_teste ', reprovacao);
g_form.setValue('description', ' Justificativa técncia reprovação 2: ' + reprovacao + '\n\n' + g_form.getValue('description'));
if (g_form.getValue('u_teste ') == '') {
g_form.setReadOnly('u_teste ', false);
g_form.setVisible('u_teste ', true);
g_form.setMandatory('u_teste ', true);
g_form.addErrorMessage('Preencha explicação Técnica da reprovação do pedido.');
return false;
}
gsftSubmit(null, g_form.getFormElement(), 'rprovaprb');
}
}
I really need help.