WordPress.org

Forums

Contact Form 7
Passing data from first form to second form (5 posts)

  1. pirireis
    Member
    Posted 2 years ago #

    I'm using cf7 Dynamic Text Extension plugin to pass name value from the first form to second form but name value returns as "undefined". Is there anything wrong with these codes?

    Form 1
    [text* name]

    Form 1: Additional Settings
    on_sent_ok: "location = '?page_id=123?name='+jQuery('#name').val();"

    Form 2
    [dynamictext* name "CF7_GET key='name'"]

    Result:
    ?page_id=123?name=undefined

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

  2. DDT
    Member
    Posted 2 years ago #

    Haven't used the extension but double ?'s is wrong.

    You could try
    on_sent_ok: "location = '?page_id=123&name='+$('#name').val();"

  3. owcv
    Member
    Posted 2 years ago #

    Is it possible to have paged forms with that?

  4. DDT
    Member
    Posted 2 years ago #

  5. caligan
    Member
    Posted 2 years ago #

    Hello I had the same problem and we need to add an id to [text* name] =>
    [text* name id:name]

    It works with me...

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