Support » Plugin: Contact Form 7 » TextBox default value "0" not shown

  • Hi,

    if I set [text* dvd-count id:dvd-count "0"], the default value 0 is not shown in the form. Otherwise [text* dvd-count id:dvd-count "1"] shows the default value 1. Perhaps it’s a problem with a check like $default_value == 0, should be type-safe like $default_value === 0 – but it’s just a guess.

    Can You please fix it.

    Greetings
    Ronny

    https://wordpress.org/plugins/contact-form-7/

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

    (@takayukister)

    OK. I’ll fix it in the next release. Thanks for reporting.

    BTW, for integer inputs, you can use number and range fields instead.

    Thread Starter Dr. Ronny Harbich

    (@raubvogel)

    Thank You 🙂 I will mark this post as resolved as soon as fixed.

    Thank You for the “number and range” tip 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TextBox default value "0" not shown’ is closed to new replies.