- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2024 09:51 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2024 10:22 AM
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';
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2024 10:22 AM
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';
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2024 08:58 PM
Thanks Bro. It is working now as per my requirement