Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #897830

    Hi, I like how the form builder works. My customers receive confirmation after the form submitted, that is great!. But for checkboxes and radiobuttons they see FALSE or TRUE values. Is there a way to replace the default values with YES and NO?
    Thank you,
    Helen

    #898403

    Hey Helen,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #898824

    Yes, it’s provided

    #900229

    Hi,

    I tested the form with my email and I have seen the problem.
    Give us some time to check out why that is happening please.

    Thank you very much

    Best regards,
    Basilis

    #907340

    Hi Basilis, do you have any update for this issue?
    Thank you

    #907680

    Hi,

    Thank you for the update. Please use the following filter in the functions.php file.

    add_filter('avf_form_message', 'avf_form_message_mod_checkbox', 10, 3);
    function avf_form_message_mod_checkbox($message, $new_post, $form_params) {
    	$message = str_replace('true', 'Yes', $message);
    	$message = str_replace('false', 'No', $message);
        return $message;
    }

    Best regards,
    Ismael

    #908277

    Thank you so much, Ismael! It works perfect!

    #908383

    Hi,

    Great, glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #911888

    Yes, you can close the topic. Thank you!

    #912101

    Hi,

    Thanks for letting us know. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Checkbox and radiobutton values’ is closed to new replies.