0

I have a list that accepts 5 different values, but some things on my spreadsheet are empty, meaning its none of the 5 things. However during the feeds import, it is saying my empty field is not a valid selection.

Is there a way I can still import even though the value is empty?

3
  • Yes, its key is _none
    – No Sssweat
    Oct 8, 2020 at 0:18
  • So with feeds tamper I set defaule value to _none if field is empty, but it still says its not a valid choice.
    – Shawn
    Oct 8, 2020 at 0:20
  • Ok try using the label, by putting - None -
    – No Sssweat
    Oct 8, 2020 at 3:29

1 Answer 1

0

Select Element's API

#empty_option: (optional) The label to show for the first default option. By default, the label is automatically set to "- Select -" for a required field and "- None -" for an optional field.

#empty_value: (optional) The value for the first default option, which is used to determine whether the user submitted a value or not.

So using this information, you are able to use the null value's defaults from the select element.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.