I have an Event model with field status, which is string so it appears as a text_field. But I have a list of possible statuses and I want to display it as a select box. Also, when I select cancel status for a event it should ask me for the cancellation reason. I am not able to find good tutorial for this.
I have an Event model with field status, which is string so it appears
Share
ActiveAdmin uses Formtastic for form generation, so Formtastic’s documentation should answer your questions.
You can get a select instead of a textfield with the following code:
Triggering an event when selecting “cancelled” should be solved with javascript.