Hi all, Can anyone help me with the expression used to check whether an autocomplete has a selection or is null or empty?
0
-
You can e.g. use an If with the expression
=!!$form1.state.autoComplete1.valueThis will return true if the autocomplete has a value/selection
1 -
Hi Jostein. I tried this just now and received the following:
The given expression could not be evaluated. "!!$displayform1.state.autoComplete1.value" Cannot read properties of undefined (reading 'value').
There are several autocomplete activities on my display form, some of which are optional. I am constructing a query based on those that have a value. If the user skips a particular autocomplete activity I need to check if it has a value or selection.
0 -
Hi Jostein. Please disregard my previous comment. I forgot to change the name of the autocomplete activity. Thanks!
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer