In a form there are multiple select2 elements. In a particular select2 element I set some options with a not null string 'text' and null 'value'. The submit form seems to behave like this:
- if 'value' is not null -> 'value' is the submitted item on 'submit' action
- if 'value' is null -> 'text' is the submitted item on 'submit' action
This is not the behavior I'm looking for. How can I submit 'value' when 'value' is null? I just want to submit null! I can't find anything like that in the select2 documentation.