Is it possible to use a custom list with the autocomplete functionality for text fields?
It feels unnecessary to create a database, and it is difficult to get the query to work properly.
Regards
Svensson, Peter
Hi Peter. I use Jquery to do this:
var array1 = [{"label":"label1","value":"value1"},{{"label":"label2","value":"value2"}}];
$( "#id_text_widget" ).autocomplete({
source: array1,
minLength: 2,
select: function(event, ui){
id_text_widget.setValue(ui.item.value);
},
});
You can create your array and set "autocomplete" to your text widget. Here is the Jquery doc: https://jqueryui.com/autocomplete/
Hope this helps!
Yes, thank you, this does work :)
I was hoping that there'd be a built in system in RMP for this. But this fills my needs.
Thank you :)
Regards
Svensson, Peter