Override Create template to allow user to select a foriegn key relation

Override Create template to allow user to select a foriegn key relation

snunnsnunn Posts: 17Questions: 5Answers: 0

I need to be able to pick a foreign key when the user selects to add a new record. Is there an example of this? I would like for the user to see some descriptive text vs some big uuid.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,873Questions: 1Answers: 10,528 Site admin

    The join example shows the end user being able to select a foreign key value when creating a new row.

    Allan

  • snunnsnunn Posts: 17Questions: 5Answers: 0

    I used the join example for some fields, however, a dropdown with 10,000 entries is not easy to use. I was hoping to make the field interactive for the drop down. I would like for the user to start typing in a value and then fill in the dropdown via a server request. As the user types more info, I would like to keep querying the server to get a smaller and smaller list. Is that possible?

  • allanallan Posts: 63,873Questions: 1Answers: 10,528 Site admin
    Answer ✓

    Yes, Editor has field type plug-ins available for Select2, Selectize, Chosen and jQuery UI AutoComplete. You can choose which ever you prefer to work with. This is the plug-ins list.

    Allan

This discussion has been closed.