diff --git a/changelog.txt b/changelog.txt
index b0d845795..a88fb2aaa 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,5 +1,8 @@
== Changelog ==
+- 2.0.3 - xx-xx-2023
+* Dev - Filter added for checkbox and radio options.
+
- 2.0.2 - 19-07-2023
* Feature - Regex validation for field.
* Feature - Custom CSS and JS for form.
diff --git a/includes/abstracts/class-evf-form-fields.php b/includes/abstracts/class-evf-form-fields.php
index 55fa687d4..b5f08c801 100644
--- a/includes/abstracts/class-evf-form-fields.php
+++ b/includes/abstracts/class-evf-form-fields.php
@@ -2648,9 +2648,14 @@ public function field_exporter( $field ) {
case 'radio':
case 'signature':
case 'payment-multiple':
- $value = '';
- $image = ! empty( $field['value']['image'] ) ? sprintf( '
', $field['value']['image'] ) : '';
- $value = ! empty( $field['value']['label'] ) ? $image . $field['value']['label'] : '';
+ $value = '';
+ $image = ! empty( $field['value']['image'] ) ? sprintf( '
', $field['value']['image'] ) : '';
+ $filtered_choice = apply_filters( 'evf_custom_choice', false );
+ if ( $filtered_choice ) {
+ $value = ! empty( $field['value']['label'] ) ? $field['value']['label'] : '';
+ } else {
+ $value = ! empty( $field['value']['label'] ) ? $image . $field['value']['label'] : '';
+ }
$export = array(
'label' => ! empty( $field['value']['name'] ) ? $field['value']['name'] : ucfirst( str_replace( '_', ' ', $field['type'] ) ) . " - {$field['id']}",
'value' => ! empty( $value ) ? $value : false,
@@ -2665,7 +2670,12 @@ public function field_exporter( $field ) {
$image = ! empty( $field['value']['images'][ $key ] ) ? sprintf( '
', $field['value']['images'][ $key ] ) : '';
if ( ! empty( $choice ) ) {
- $value[ $key ] = $image . $choice;
+ $filtered_choice = apply_filters( 'evf_custom_choice', false );
+ if ( $filtered_choice ) {
+ $value[ $key ] = $choice;
+ } else {
+ $value[ $key ] = $image . $choice;
+ }
}
}
}