Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
udaya_kumar
Specialist
Specialist

How to retrieve individual values of a listbox when multiple values are selected?

Hi,

I have a listbox with few values. it is of checkbox type, so user can select multiple values.

i was using that value of listbox for hiding the expression like

(getfieldselections(names_list)='Monthly') then only the expression should visible.

but if user selects multiple values, then this above expression not working.

so how to retrieve individual values for checking the condition.

PF the image which shows the values in Current Selections Box.Current_Selection_Box.jpg

1 Solution

Accepted Solutions
swuehl
MVP
MVP

What about

WildMatch(GetFieldSelections(name_list), '*Monthly*') > 0

i.e. using wild cards?

edit:

You could also try

count( {<name_list *=  {Monthly}>} name_list)

View solution in original post

4 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Try something like:

WildMatch(GetFieldSelections(name_list), 'Monthly') > 0

You can put multiple values in too

WildMatch(GetFieldSelections(name_list), 'Monthly', 'Weekly') > 0

Hope that helps

Jonathan

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

Hi Jonathan,

Thanks for reply,

i tried it, but its working only for single selection, not for multiple selection.

swuehl
MVP
MVP

What about

WildMatch(GetFieldSelections(name_list), '*Monthly*') > 0

i.e. using wild cards?

edit:

You could also try

count( {<name_list *=  {Monthly}>} name_list)

udaya_kumar
Specialist
Specialist
Author

Thank u very much swuehl