How do I get the text from a choice field on a task?

  • 25 July 2018
  • 2 replies
  • 14 views

Badge +8

Choice fields on a task seem to want to return an alias code instead of the actual text entered/   This can make a workflow really hard to follow.   Is there anyway to convert the alias code to the text that is in the choice field?

Why does Nintex  do this on task forms?   It does not work that way in regular forms.


2 replies

Userlevel 5
Badge +14

where do you exactly want to get that text(s)?

in task form itself? or in workflow after task is responded?

in workflow you do get a separate branch for each task outcome labeled by its name (text). in workflow you do not get any code...

Why does Nintex  do this on task forms? 

because task outcomes are shared for all the tasks across  site

Task Form Outcome Conditional Formatting/Validation 

Badge +8

I was ab;e to get it with this little bit of JavaScript

function getDecisionValue()
{
   return NWF$("#" + JS_ctrlDecision +  " input:checked").next().text();
 
}

Assuming your decision field has a JavaScript  variable set to JS_ctrlDecision 

Reply