- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 09:55 AM
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';
}
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 10:48 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 10:48 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 12:03 AM
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';
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 04:07 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 11:51 AM
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!