select title from a list

Hi!

I need that when you create a new event to save on data base, you have to select the title from a list. This list will be created from database.

For example, you want to create a calendar for a football team. You choose the name of the team and the city. After that, you get the calendar associated to the football team selected. When you try to insert a new event you have to choose the team against this team will play from a list which appears in description.

I want to add new fields after description, another list. For example showing hotels in that city.

PS: I am not doing a football team calendar, it was just for example :laughing:

Hello,

if you add the “select” block into the lightbox, it has some “map_to” property. So in order to define default selected option you should create the event with the corresponding map_to value.

For example, if there is a select block that is mapped to “team” property and you want to preselect the team with “1” key, the new event should have property team = 1.

I want to select from some options taken from the data base.

Depends of a starting option, you get one list or another list…

um… an example: you have choose a career from a database, then you get the list with all subjects from that career. another career, another list… All from database. One table for careers, one for subjects…

We don’t have such a ready sample. Please read information in the documentation about creating custom detail form - possibly it’ll help:

docs.dhtmlx.com/doku.php?id=dhtm … tails_form