Page 1 of 1
Is there a select object with free text?
Posted: Sat May 16, 2020 5:33 pm
by Timo
Hi all,
I need a dropdown (kind of select object) from which I can select a city, for example. But you should also have the possibility to enter any other city.
The lookup object is out of the question, because I don't want you to add other cities there, which every other user will see. How can I do that?
Re: Is there a select object with free text?
Posted: Sat May 16, 2020 9:33 pm
by admin
Timo,
You can use an Input:nuScroll Object.
https://wiki.nubuilder.cloud/ ... ab_-_Input
Steven
Re: Is there a select object with free text?
Posted: Thu Dec 30, 2021 11:13 am
by Timo
Hi,
I read that you can now also use a html datalist. In what format do I enter a list of values / what format is expected?
Re: Is there a select object with free text?
Posted: Thu Dec 30, 2021 12:44 pm
by kev1n
Hi,
The datalist field expects an array like:
or
or even value/text pairs:
Code: Select all
[
["A", "Description for A"],
["B", "Description for B"],
["C", "Description for C"]
];
... and you can use the JS function nuAddDatalist() to add a data list to an input object:
Code: Select all
var dataList = [
["A", "Description for A"],
["B", "Description for B"],
["C", "Description for C"]
];
nuAddDatalist('nuSearchField', dataList);
Re: Is there a select object with free text?
Posted: Fri Dec 31, 2021 9:52 am
by Timo
thanks, got it
