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 '20 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 '20 at 0:20
  • Ok try using the label, by putting - None - – No Sssweat Oct 8 '20 at 3:29
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, privacy policy and cookie policy

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