You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Forms - Assigning values to choices

posted on December 9, 2019

I am choosing the option to assign values to choices

This way I can compare the choice to see what steps should run in the next task IE: if value <= step number.

However the value of the token is still the Choice, not the Value. What is this alternate value good for?

0 0
replied on December 9, 2019

If values exist, they should be sent over to workflow. However, Values cannot start with integers, so when this form is saved/refreshed, those will update to V_1, V_2... and be sent over as strings. You could try to do a string compare anyway where V_1 > V_2 > V_3... because they should be evaluated alphabetically, but you'd run into trouble after v_9 because in string compare V_1 > V_10 > V_2. 

The use case behind values is to give process designers a way to easily reference long, descriptive choice options in their process. A form designer may want to show a longer, nicer message to the user in their radio buttons

"Yes - please add me to the email list" vs "No - I would not like to be added at this time"

but that would be tedious to carry around in the process like in gateway comparisons. It also would have to be updated in the process if you wanted to modify the message to the user. 

Values allow you to put effectively a variable behind each choice, so you can easily reference them throughout the process while still being able to change the friendly display value to the user. 

6.4.1
0 0
replied on December 9, 2019

That was what I was trying to do, create a Choice that makes sense to the user "Create Quote" with a value of "1".

But the value doesn't come over as 1 or V_1, it comes over as "Create Quote" as you can see from the screenshot showing the token's value.

0 0
replied on December 9, 2019 Show version history

Is it possible you have the same variable on another form with values turned off? Or with default values that match the choice name? That might confuse it. 

Can you try adding a new checkbox/radio button with values and see if you can get the values in a basic case? 

Also, make sure to refresh the form so that the values are saved. The values shown still are 1, 2, 3... which means they haven't been sent to the back end and updated with V_1, V_2... yet. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.