• Resolved ecobeesishan

    (@ecobeesishan)


    Greetings,

    I am trying to change the value of checkbox according to its checked status. I want to change the message to “Yes/No” instead of 1 and 0. Is it possible to change this with free version of the plugin? The changes should be reflected in the email too. Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Support Dina S.

    (@themehighsupport)

    Hi,

    Unfortunately, there is no direct option available in our plugin to provide an OFF value for the checkbox field. However, you can add the below filter function in your child theme’s functions.php to achieve this requirement.

    function thwcfe_checkbox_field_off_value($off_value, $name){
    if($name === 'field_name'){
      $off_value = 'no';
    }
    return $off_value;
    }
    add_filter('thwcfd_checkbox_field_off_value', 'thwcfe_checkbox_field_off_value', 10, 2);


    In the above code, please replace the field_name with your corresponding Checkbox field name.

    Also, please provide “Yes” value in the “Default Value” inside the Checkbox field’s Basic Info tab.

    Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Checkbox Custom Message’ is closed to new replies.