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

Display message if the user tries to select more than 1 values in list box

Hi,

How to display the error message when the user tries to select more than one values in a list box? I know we can do that in "Calculation Condition" but I am not able to find it. Can some one help me on this?

15 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

Calculated condition will be applicable to chart.

Select any value from your list box --> Go to list box properties --> General tab --> Select always one selected value.

Regards

ASHFAQ

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Chart Properties -> General -> Calculation Condition and give

=GetSelectedCount(FieldName) = 1

Hope this helps you.

Regards,

jagan.

Anonymous
Not applicable

You can select "Always one Selected Value" in the listbox

listbox.png

qlikviewforum
Creator II
Creator II
Author

Thanks but I dont want to select that option for some reasons

qlikviewforum
Creator II
Creator II
Author

I don't see the calculation condition in General tab. That is what my concern is.

Also if the user tries to select more than one value in a list box I want to show the error message. How that is possible?

jagan
Luminary Alumni
Luminary Alumni

Hi,

Check attached file, created alert using Text Object.

Regards,

Jagan.

ashfaq_haseeb
Champion III
Champion III

Have a look at attached application.

Use this as field event trigger.

=If(GetSelectedCount(Year), Max(Year))

Regards

ASHFAQ

Not applicable

Since Listbox already has a Select only one option available so no calculation condition is present there. But you can surely use the Jagan's logic to show and hide a text object based on selection of field in the list box. It is more of Show Help option.

Thanks,

Singh

Not applicable

Hi,

How about using Help text in Caption?

ex:

=If(GetSelectedCount(Field)>1,'Not more than one!!','')

Hope this helps you..!!

Regards,

Ravikumar