Allow for non-standard imported values for checkbox fields

Normally, the imported value should match the checkbox input’s value. If the checkbox in Gravity Forms has a value of “Apple”, the imported cell value should also be “Apple”. If the CSV value is “Apples” or “True” or “YES” or “1”, the import will not check the checkbox in Gravity Forms.ย
The Numbers app for Mac andย iOSย hasย checkbox cell formats (see screenshot). When exported to CSV, these checked or uncheckedย checkboxes are represented byย “TRUE” or “FALSE” text values. If you are importingย a CSV from Numbers that uses these special fields, then “TRUE” should be consideredย valid during import.
Allow any non-empty value to be valid
These following values will be interpreted as empty, and the checkbox will not be checked:
"" // Empty
"0" // Zero
"FALSE" // Upper-case "false"Any other valueย will be interpreted as not empty, and the checkbox will beย checked.
Enable the functionality


Each checkbox value must be mapped separately during the Import Entries configuration.
If the
gravityview-importer/strict-mode/fill-checkbox-choices filter returns `true`, the correct value will be filled. See below code:
add_filter( 'gravityview-importer/strict-mode/fill-checkbox-choices', '__return_true' );Read here how to add these code samples to your website: Where to put code samples.