• iscamon

    (@iscamon)


    Hello, I am trying to create a new type of text with the characteristic that it does not save in Flamingo.

    I’m using the ‘do-not-store’ option in the new type definition, but when I set it to true, it doesn’t store it in Flamingo, but it doesn’t send it in the mail either; If I set it to false, it stores it in Flamingo and also sends it in the email.

    This is my code:

    add_action( ‘wpcf7_init’, ‘custom_add_form_tag_newtext’,10,0 );
    function custom_add_form_tag_newtext() {
    wpcf7_add_form_tag(
    ‘newtext’,
    ‘custom_newtext_form_tag_handler’,
    array(
    ‘name-attr’ => true,
    ‘do-not-store’ => true,
    )
    );
    }

    What am I doing wrong?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thank you for reporting. Your code looks great. There seems to be a mistake in the handling of the do-not-store feature in submission.php. I’ll look into it and hopefully resolve it in the next update.

    Thread Starter iscamon

    (@iscamon)

    Thanks, appreciate your quick response.

    I pay attention to future updates.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create a text field with do-not-store attribute’ is closed to new replies.