Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
how to set listbox selection for maximum of 2 perticular selection
There is no built-in property to limit the selection to two possible values. The only way to do this is on add actions to the OnChange and/or OnSelect triggers for that field.
You can do something like this using Field event trigger
Please see the attached
Hi,
Yes, as Jonathan said, there is no built in property to limit the selection to two possible values. You can use triggers
hi
May be try like this
Document Properties -> trigger -> Field Event Trigger -> Field name -> OnSelect
Actions:
Select in Field
Field: FieldName
=if(GetSelectedCount(FieldName)>2, '', '(*' & GetFieldSelections(FieldName,'*|*') & '*)')
you can try like this:
Go to list box properties >layout > here you can specific if the count is more than 2 disappear the listbox and show a text box message to select only two at a time>you can add action in the text so that it will clear the selection in the list box and the list box will appear for the fresh section
hi,
thanks,Can you please suggest where you have added the action i am not able to find it.
thanks
Hi,
Go to Settings>Document Properties>Triggers>Field Event Triggers>Select Fieldname>OnSelect>Add Action>Select in Field>Field name>Search String> =if(GetSelectedCount(FieldName)>2, '', '(*' & GetFieldSelections(FieldName,'*|*') & '*)')
Hope it helps!!