How to skip(by pass) to send the approval to VIP user?

jugantanayak
Tera Guru

How to skip(by pass) to send the approval to VIP user?

 

IF script is not working.

var title = current.variables.requested_for.vip;

answer = ifScript();
function ifScript() {
if (title == true)
return 'yes';
else
return 'no';
}

1 ACCEPTED SOLUTION

dmathur09
Kilo Sage
Kilo Sage

Hi,

Can you put true in inverted comma,

var title = current.variables.requested_for.vip;

answer = ifScript();
function ifScript() {
if (title == 'true')
return 'yes';
else
return 'no';
}

Regards,

Deepankar Mathur

View solution in original post

8 REPLIES 8

dmathur09
Kilo Sage
Kilo Sage

Hi,

Can you put true in inverted comma,

var title = current.variables.requested_for.vip;

answer = ifScript();
function ifScript() {
if (title == 'true')
return 'yes';
else
return 'no';
}

Regards,

Deepankar Mathur

Hi Deepankar,

Thanks for your reply.

Below script is working.

var title = current.requested_for.vip;

answer = ifScript();
function ifScript() {
if (title == 'true')
return 'yes';
else
return 'no';
}

 

Hi Jugan,

It seems you have marked your answer as the right answer. If you think my response is helpful for you? If yes, mark that as correct answer, would appreciate that. Thanks

Regards,
Deepankar Mathur

Allen Andreas
Administrator
Administrator

Hi,

If the above ifScript works for you, then you may need to use this line instead as the VIP field is a boolean:

if (title == true)

Otherwise, what has been recommended would be fine.

Please mark reply as Helpful, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!