Value attribute in tag not working when within a tag.

  • <v:newsletter code="07635e702" flash="newsletter" redirect="/">
    <v:text_field path="e_mail_address" type="text" id="email" value="Email Updates" />

    Results in:

    <form flash="newsletter" action="/index.html?__v:newsletter=c40c162e494d9d6172e1b6cc0471ee6a" method="post">
    <input type="text" id="email" value="" name="e_mail_address" />

  • 2 Answers sorted by
  • It's because you're specifying path="e_mail_address" rather than name="e_mail_address".

    When you specify a path, it looks in that context to pull the initial value.

  • That fixed it, thanks.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

In this Discussion