Contact Form 7
[resolved] Form Name (7 posts)

  1. antaspen
    Posted 2 years ago #

    Sorry for my english, i'm french ;)
    I would like to know if it's possible to add a form name when i create a form with Contact Form 7?
    For example, i have this code in my form :
    <form action="###" method="post" class="wpcf7-form">
    And i just want to add somehting like that : "<form name="form_1" action="###" method="post" class="wpcf7-form">

    Can you tell me if it's possible?



  2. davejampole
    Posted 2 years ago #


    When you create a new form (Dashboard>Contact>Add New), at the top of the screen, you will see Untitled in bold. Enter the name you want and continue designing the form.

    If you want change the name of a existing form to something more meaningful to you, click Contact and Edit under the form in question. The form will enter in design mode. At the top of the screen, you will see something like this '[contact-form-7 id="451" title="Event-Activity Form"]' with a brown background. Simply click on the text following the 'title=' and enter the name you want.

    Make sure you click the Save button.

  3. antaspen
    Posted 2 years ago #

    Thx davejampole for your answer.
    But there is still a problem when i look my form...
    It's still <form action="###" method="post" class="wpcf7-form"> without a name attribut...

    I would like to give a name at this form in the html page... I don't know i you understand? :) (Really sorry...)


  4. davejampole
    Posted 2 years ago #

    You are looking at the html code of the form. That is NOT where you change the form name. You need to change from the WordPress dashboard as I indicated above.

  5. antaspen
    Posted 2 years ago #

    Yes i know, but i'm looking in the html code to see if the Form Name appear. But it's not. And i need to get a name on the html code after to use this name...

  6. antaspen
    Posted 2 years ago #

    Ok, that's fine, i did it manually in the code of classes.php ;) Thx!

  7. Takayuki Miyoshi
    Plugin Author

    Posted 2 years ago #

    antaspen, so you want to edit the name attribute of the form element, right? Contact Form 7 doesn't provide a setting for that, but could you tell me the reason why you need to edit it? What do you use it for?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic