workflow script is not working

pavam
Tera Contributor

pavam_0-1725554925570.png

 

 

The above code is not working for me is there any thing wrong in that piece of code?

,i am getting app value from the  catalog form.

but working as per the piece of code,

by default it is returning 'no' value.

 

 Help is highly appreciated by advance.

 

 

1 ACCEPTED SOLUTION

Ramesh_Naidu
Mega Guru

Hi @pavam ,

 

Update the code:

answer = ifScript ();

function ifScript() {
var app = current.variables.do_you_have_approval_email;
gs.info('Answer Value:on top' + app);
if (app == 'false') {
gs. info('Answer Value:1in false block- approval required' + app);
return 'yes';

}
else

}

gs.info('Answer Value:2nd in True block- approval not required' + app);
return 'no';
}

 

View solution in original post

2 REPLIES 2

Ramesh_Naidu
Mega Guru

Hi @pavam ,

 

Update the code:

answer = ifScript ();

function ifScript() {
var app = current.variables.do_you_have_approval_email;
gs.info('Answer Value:on top' + app);
if (app == 'false') {
gs. info('Answer Value:1in false block- approval required' + app);
return 'yes';

}
else

}

gs.info('Answer Value:2nd in True block- approval not required' + app);
return 'no';
}

 

pavam
Tera Contributor

Thanks Bro. It is working now as per my requirement