cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
barlock
Level 4

Problem with Advanced Get User Input Panel

Using IA 2010 SP1. I recently made a change to replace a Simple Get
User Input panel with an Advanced one to fix a globalization problem
(text not wrapping). Both panels have Yes/No radio buttons with
variables $X_1$ assigned to Yes and $X_2$ assigned to No and No is
selected by default. The associated code (written for the Simple input
panel) tests $X_BOOLEAN_1$ = "1" to know if Yes was selected. However,
this stopped working with the Advanced panel. I printed out the
associated variables when I ran the installer and selected Yes. I see:

$X$:
$X_1$: 1
$X_2$: 0
$X_BOOLEAN_1$:
$X_BOOLEAN_2$:

The boolean variables are not even set and the X_1 and X_2 have the
boolean values. Before I make any code changes, is this to be expected? The IA help discussion about results variables makes me think that
this is not correct.

Chris
Labels (1)
0 Kudos
(1) Reply
jerome_IA
Level 9

Hello,

The Simple Get User Input panel has only one "result variable" which contains the result of all the inputs, so the result is "_1", then "_2", then "_n" and depends on the number of fields (see VAR_BOOLEAN_X Variable in the IA help)

While the Advanced mode has only one variable per input so if you name it "VAR", result will be "VAR=1" if it was selected. So this is the boolean value.
So your results $X_1$: 1 and $X_2$: 0 simply means that you named the result variable "X_1" for first choice and "X_2" for the second


Also take care if you support the console mode installer which also show different values (with '"' double quoted values).

--Jerome
0 Kudos