Forums

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

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

    Is it possible to have paged forms with that?

  4. DDT
    Member
    Posted 7 months ago #

  5. caligan
    Member
    Posted 6 months 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...

Reply

You must log in to post.

About this Plugin

About this Topic