Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dynamic text box

I have a table with 3 fields Level (1-5), Fields & description and I want to to create 5 text boxes (1 for each level) and want to change the description according to what is selected in the field column. I can't use conditional show as I want to display all 5 boxes when 1 field is selected and want to change the descriptions when another value in the field column is selected.

Please help me out in this?

Here my sample data:-

LevelFieldDescription
0Field 1Aenean a sem et risus interdum gravida.
0Field 2Aenean mollis ligula eu nunc eleifend mattis.
0Field 3Aenean nec sapien volutpat sem sodales auctor.
0Field 4Aenean posuere lacus et elementum ornare.
0Field 5Aenean pulvinar risus id tortor lobortis, ac feugiat quam tempus.
0Field 6Aenean tempus tortor sit amet eleifend dictum.
1Field 1Aliquam cursus mauris sed condimentum adipiscing.
1Field 2Aliquam iaculis ligula sed lorem rhoncus lobortis.
1Field 3Aliquam id lectus ornare, mattis purus a, adipiscing nunc.
1Field 4Aliquam lacinia neque et risus gravida viverra.
1Field 5Aliquam lacinia nisl quis dignissim dignissim.
1Field 6Aliquam quis neque in diam interdum tempus ut at est.

Many Thanks,

Mohammad.

1 Solution

Accepted Solutions
crusader_
Partner - Specialist
Partner - Specialist

Hi,

Add "Field" Listbox (Check option: Always One Selected Value).

Expressions for your text objects are:

=only({<Level={0}>}Description) // For Level 0

=only({<Level={1}>}Description) // For Level 1

=only({<Level={2}>}Description) // For Level 2

=only({<Level={3}>}Description) // For Level 3

=only({<Level={4}>}Description) // For Level 4

=only({<Level={5}>}Description) // For Level 5

Hope this helps.

Regards,

Andrei

View solution in original post

3 Replies
crusader_
Partner - Specialist
Partner - Specialist

Hi,

Add "Field" Listbox (Check option: Always One Selected Value).

Expressions for your text objects are:

=only({<Level={0}>}Description) // For Level 0

=only({<Level={1}>}Description) // For Level 1

=only({<Level={2}>}Description) // For Level 2

=only({<Level={3}>}Description) // For Level 3

=only({<Level={4}>}Description) // For Level 4

=only({<Level={5}>}Description) // For Level 5

Hope this helps.

Regards,

Andrei

Anonymous
Not applicable
Author

It works, Thanks very much for the help!!!

Not applicable
Author

plz attach a sample qvw