Re-use the VALUE of a variable

Sep 10, 2019

I would like to 're-use' the VALUE of a variable.

Setting:

O  Finance

O  Marketing

O  Service

The user chooses her department by clicking the right radio button, and the corresponding variable is set to True.

I would then like to use the VALUE of the variable button as text, i.e. 'Finance', 'Marketing' og 'Service' in a 'bread-crumb-like feature':

... 'Name, Marketing' ...

Do I make myself clear?

Is it possble?

How?

Thanks in advance and kind regards,

Michael, Denmark

1 Reply
Brian Allen

Hello Michael... A couple of options come to mind, but I'm sure there are several others: 

  1. If you won't be using the value of "True" for anything, possibly reconfigure your variable to equal the text value upon the radio button being selected, rather than True. So if someone selects the Finance radio button, set the value of the variable to "Finance". In this scenario you could always use conditions similar to True/False for other triggers, such as if variable = "Finance" or variable not equal to "Finance", same as True/False.
  2. If it's absolutely necessary to use True/False as the values for your radio buttons, then I would create a secondary variable and use a trigger like if radio button variable = True then set the value of (secondary variable) to "Finance". Then you'll reference this variable wherever you are using the breadcrumb like feature.

Hope this makes sense, if not just reply back here and we can work through it.

B

This discussion is closed. You can start a new discussion or contact Articulate Support.