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?
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Is there a select object with free text? Topic is solved
Re: Is there a select object with free text?
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?
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?
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: Is there a select object with free text?
Hi,
The datalist field expects an array like:
or
or even value/text pairs:
... and you can use the JS function nuAddDatalist() to add a data list to an input object:
The datalist field expects an array like:
Code: Select all
["value1", "value2", "value3"]
Code: Select all
[25,465,587,2525]
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);