Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Text that changes on click

Hi all,

I'm creating a dashboard that needs something which changes text on click, i.e. it will display a string of text 'hello my name is Sam', and then when you click on that text box, it changes to another string 'today is the fourth of may' and cycles between a list of strings.

Do I need to store the string in an inline load? I'm not sure about this one!

Thanks!

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You can use an action to increment a count variable, triggered by the text box click trigger.

Use FieldValueCount() and FieldValue() to retrieve the text values from your data model.

See attached for a sample.

View solution in original post

2 Replies
swuehl
MVP
MVP

You can use an action to increment a count variable, triggered by the text box click trigger.

Use FieldValueCount() and FieldValue() to retrieve the text values from your data model.

See attached for a sample.

its_anandrjs
Champion III
Champion III

You can also achieve the same by the use of the variables and 3 text boxes and when click on the text box reassign the value to the text box and display another text box and hide the previous text box like

1.Take a variable

                         Let vChange = 0

2.Take a text box and write first display line and its action property add actions Set Variable  and in variable box add vChange and set its property Value 1 like ways add 3 text boxs and in layout property change like if(vChange = 0,1,0) do same for all text box but with different values.

Settings for text boxes

Text box1 = Set Variable Value 1, if(vChange = 0,1,0)  

Text box2 = Set Variable Value 2, if(vChange = 1,1,0)

Text box3 = Set Variable Value 3, if(vChange = 2,1,0)

Text box4 = Set Variable Value 4, if(vChange = 3,1,0)

Text box5 = Set Variable Value 0, if(vChange = 4,1,0)

And place this all text box to each other