how do i set a null value of a post object field, when a post has previously been selected and saved in that field?
shouldn’t there be a ‘none’ option in the drop-down?
or am I missing something?
thanks
EDIT: ok, i figured it out – there is a small ‘X’ on the right edge of the dropdown that will clear the selection.. problem solved.
Hi @sblomberg
have you tried hovering over the selection?
Also try a different browser.
ACF uses the select2 library for creating these dropdowns and it should have the ability to deselect IF you’ve set the field settings to allow null. Make sure you’ve done that as well!
…IF you’ve set the field settings to allow null. Make sure you’ve done that as well!
That was my problem – After setting Allow Null? to Yes I was presented with the X to clear the selections of those Post Object fields. I assumed that having the Required? property set to No would allow me to clear the selection, so I didn’t even consider the Allow Null? property.
Thanks!
No problem! Glad I could help 🙂
The required property would just make sure that at least 1 selection has been made for the post to be able to save.