WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. pirireis
    Member
    Posted 1 year 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 1 year 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 1 year ago #

    Is it possible to have paged forms with that?

  4. DDT
    Member
    Posted 1 year ago #

  5. caligan
    Member
    Posted 1 year 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

About this Topic