How do I make Autocomplete Box Default Text Selected at Runtime?
I have a form that contains an AutoCompleteBox. I am passing in a value using Runtime Modification (form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").DefaultText = "MyText". This correctly populates the Autocomplete box but the text is not selected. This means the subsequent listbox below that uses the value of the autocomplete box to run a query remains blank. If I edit the default text, such as deleting the last letter, and then click default text in the dropdown suggestion box, then the autocomplete item is selected and the list box populates. How can I have the autocomplete value selected by the runtime modification? SelectedValue is not an option for autocomplete boxes, just DefaultText. It is going to be very confusing to our users to have the right text in the autocomplete box but no items showing up in the list box. I was hoping to avoid them having to enter in a value each time for the autocomplete but I may be forced to that.
Thanks,
Melissa
0
-
Thanks Carmen! That does the trick. I was stuck thinking I could do it all at runtime, but it makes sense to have to prepopulate the list box and then just pass in the selected items at runtime.
Melissa0
Please sign in to leave a comment.
Comments
1 comment