I have a custom edit form for some entity (not based on the CRUD module), and I would like to use a CRUD-like editor for just one specific field.
Specifically, it’s one of the fields that is actually a @ManyToOne relation to another entity:
public class Person extends Model {
public String name;
@ManyToOne
public School school; // School also extends Model
...
}
How do I generate an editor/picker for this specific field, while still not requiring me to extend the CRUD class or change anything else about my view form?
Use the select tag. The code should be something like:
That should generate the dropdown you are looking for