Hello!
We are using a forum with TCF with 7 select fields. Some of these fields are required, others not. When topics are created, we want the required fields to be pre-populated with default values, but the fields that aren't required should be blank. Also, when users try to do an advanced search by custom fields, NONE of the selects should be pre-populated.
We have found a way to accomplish this by adding a blank (or empty string) value to the beginning of each select field. Then for the value that should be the default on topic creation, we wrap it in square brackets ([ ]).
However, the problem is, when you go to edit a field, the first blank value disappears and has to be re-added before the field is saved. Even worse, ALL of the other select fields also have their blank first value deleted.
The only way to keep our topic creation and search working as we want is to manually edit the form in the database. In the `wp_wpforo_forms` database, in the appropriate `field` column, we have to edit all of the select fields so the "values" array starts with an empty string:
...values":["", "[creation_default]", "value2","value3"],"type":"select",...
Fix: When editing a field (especially a select field), retain any blank values that the user adds for that select field (and any other select fields)