Support » Plugin: Contact Form 7 » Add custom attribute In select tag

  • rajkakadiya


    Hello Sir,
    I have to add a custom attribute in select tag for fix w3 validator issue.

    <select role=”signup”>

    Like above I have to add “role”(custom attribute), how can I add in contact form 7 ?


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


    Thread Starter rajkakadiya


    Hi Rakayuki,

    Thanks for your reply.

    I have already tried but it’s not working for me, let me show you what i have tried

    add_action( ‘wpcf7_init’, ‘wpcf7_add_form_tag_text’ );

    function wpcf7_add_form_tag_text() {
    array( ‘text’, ‘text*’, ’email’, ’email*’, ‘url’, ‘url*’, ‘tel’, ‘tel*’,’select’,’select*’ ),
    array( ‘role’ => true )

    [select menu-439 role:signup “first” “second”]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add custom attribute In select tag’ is closed to new replies.