Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
QFanatic
Creator
Creator

conditional display of Listbox

hi all

I have 2 listboxes. One contains Name, and other surname.

 

I only want to enable the Surname listbox if the user selected Name = 'Marie'. Otherwise, it must be disabled.

This is so simple, just today I cant get it right...

 

Thanks guys

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Updated the sample file.

View solution in original post

7 Replies
sunny_talwar

Use a condition like this

SubStringCount('|' & GetFieldSelections(Name, '|, |') & '|', '|Marie|') = 1

 

QFanatic
Creator
Creator
Author

Hello

Thanks for quick reply

Its not working :(...if I put your expression in a text box, and select 'Marie' - it does evaluate to 1...

pooja_sn
Creator
Creator

Add below expression in Layout -> Conditional section of your Surname listbox -

=SubStringCount(Concat(Name, ' | '),'Marie')

QFanatic
Creator
Creator
Author

Here is a sample of my app (with scrambled data)

 

I only want to display the Src_DB listbox if the user has selected XC_QWZTZ_WXP from the Table_name

 

sunny_talwar

Updated the sample file.

QFanatic
Creator
Creator
Author

OH GOODNESS! I completely forgot about that - I thought that I had been spending too much time in lockdown!

 

Thank you so much