you cannot reset the value to null in Forest Admin.
It would be nice to have a way to do this (an empty value in the dropdown or a button to empty it)
What problem does this solve for you?
I’m forced to add a ‘dummy’ value in the select that I map to null in my code. It would be much simpler to have the front send the null value directly.
Who else would be using this feature?
Anybody using editable non-required dropdowns. I can’t tell much more…
Have you tried to set the field to enable search? This seems to change the field to a compound select and provides an ‘x’ you can use to clear the field. With the field cleared, if the field in the database table is nullable, save will succeed and a null value is stored.
@Mike_Bissett The only workaround I found was adding a ‘dummy’ value to handle the unset. I haven’t checked for a while for other solutions, though, but somehow it does the job
I’ve just checked but we actually removed the dropdown from our admin so I can’t verify that your solution works on my end.
I’ll let the other answer or answer later if we have the use case.