- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2017 07:31 AM
Hi guys,
when using a variable like a "Select Box" I can retrieve with a SWITCH into a workflow all the choices available...
But while using this SWITCH function with a Yes / No variable type, it does not list automatically Yes, No as possibilities... Do you know why ?
Do I need to add a condition by right clicking on the swith and putting a condition called "yes" and another one "no" ?
OR should I need to create select box with Yes & No as choices ?
thanks a lot !
Solved! Go to Solution.
- Labels:
-
Workflow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2017 09:57 AM
Can you please try with below script.
answer = ifScript();
function ifScript(){
if(current.variables.Corefa_UCM_BudgetOwner == 'Yes')
return 'yes' ;
return 'no';
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2017 09:23 AM
i dont understand why ? in the catalog item form i have chose YES... and it is seenable on the variable logs on the RITM...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2017 09:57 AM
Can you please try with below script.
answer = ifScript();
function ifScript(){
if(current.variables.Corefa_UCM_BudgetOwner == 'Yes')
return 'yes' ;
return 'no';
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2017 12:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2017 09:42 AM
also what do you mean by :
" Instead you can use switch condition easily: just select the variable and select the path it should follow based on variable value" ?
I have created a switch from my variable who is a YES/NO variable type but it shows only "Always" as a value... (not "no" or "yes")...
when I add 2 conditions manually to the switch: "yes" and "no" => nothing happens, the workflows stops to the switch with no selection found..
with a SWITCH + variable Select box / choices it works (example the first switch in my workflow...)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2017 10:00 AM