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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Macro code to set conditional show formula

Can anyone help with a bit of code to set the formula for conditional show for a textbox?

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

You don't need macro code to conditionally display a text box. Simply enter an expression that tests the criteria for displaying the text box into the Properties | Layout | Show Conditional box.

I cannot help with the expression as you have not described any of the display criteria.

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thanks for the reply. I needed the code because I had >100 text objects that needed the same conditional display expression. QV doesn't let you set that for multiple object selections.

I found the answer: 

  prop = obj.GetProperties

  prop.Layout.Frame.Show.Always = False

  prop.Layout.Frame.Show.Expression.v = "expression"

  obj.SetProperties prop