Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
priyav24
Creator II
Creator II

RE:Show/Hide Text Box Based on a Selection?

Hello Everybody,

I have a requirement , where there are two images in two different text boxes say

A)Text Box A Having a Male Employee icon as Image  and

B)Text Box B Having a Female Employee icon as Image .

By default both the text boxes should be hidden when am selecting an Employee Name in the list box then the text box should be shown for that currently am using the code

GetSelectedCount(EmployeeName)>0

which is working fine..

Now i have two conditions say while am selecting the employee name the text box should be shown Based on a condition Gender='Male'

i.e)

Text Box should be Shown GetSelectedCount(EmployeeName)>0  where gender='Male'-->(SHOW)Text Box A Having a Male Employee icon as Image 

Text Box should be Shown GetSelectedCount(EmployeeName)>0  where gender='Female'-->(SHOW)Text Box A Having a Female Employee icon as Image 

Thanks in Advance,

Priya

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this.

     If(GetselectedCount(EmployeeName) = 1,If(Gender = 'MALE',1,0),0) for MALE Image Text Box.

     If(GetselectedCount(EmployeeName) = 1,If(Gender = 'FEMALE',1,0),0) for FEMALE Image Text Box.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

1 Reply
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this.

     If(GetselectedCount(EmployeeName) = 1,If(Gender = 'MALE',1,0),0) for MALE Image Text Box.

     If(GetselectedCount(EmployeeName) = 1,If(Gender = 'FEMALE',1,0),0) for FEMALE Image Text Box.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!