WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Is there a way to give the HTML tag a name (5 posts)

  1. zsmidt
    Member
    Posted 3 years ago #

    Hi,

    Is there a way to give the HTML <form> tag a name.

    eg:
    [contact-form 1 "CF7" name:pwstest]

    to generate

    <form action="?page_id=17#wpcf7-f1-p17-o1" method="post" name="pwstest" class="wpcf7-form">

    Regards,
    Peter.

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

    Unfortunately, there is not.

    Just out of curiosity, for what purpose do you use the name attribute?

  3. zsmidt
    Member
    Posted 3 years ago #

    Thanks for replying Takayuki.

    A piece of javascript that displays an image as the submit button (with shadows) instead of a standard button.

    (it is a fancy submit button).

    EG:

    <div class="pwssubmitbutton">
      <a href="javascript:document.pwstest.submit()"
         onmouseover="document.pwstest.sub_but.src='http://x.x.x.x/wp-content/themes/wworld/images/btnsend2.gif'"
         onmouseout="document.pwstest.sub_but.src='http://x.x.x.x/wp-content/themes/wworld/images/btnsend.gif'"
         onclick="return val_form_this_page()">
      <img align="absbottom" class="si" src="http://x.x.x.x/wp-content/themes/wworld/images/btnsend.gif" border="0" alt="Send us a message" name="sub_but" />
      </a>
    </div>

    Regards,
    Peter.

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

    Why not use id attribute of parent div element instead?

  5. zsmidt
    Member
    Posted 3 years ago #

    Thanks, I'll try that instead. Just had some issues accessing the form using the div id.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic