• Resolved nisoran123

    (@nisoran123)


    I have a page “Reservation”. In my page I have a div call id”destination_div”. I use ajax to display correct clicked event (request to test.php) and trying get event infos to my form.

    I’m using CF7 & dynamic text contact form 7 extension, Im trying to set all event values to my form

    so I have a field look like this : [dynamictext dynamictext-535 “CF7_GET key=’even_date'”]

    and insert Form shortcode in test.php file and try to get value by ajax like this

    jQuery.ajaxSetup({cache:false});
    jQuery(“event_number_2”).click(function(){
    var url = “/test.php?event_content=testing123”;
    jQuery(“#destination_div”).load(url,{event_date:”testing123″});
    return false;
    });
    but I can not set the value to that dynamic field? Lets say I have all the values in test.php? How can I add them to these dynamic text fields? I use both CF7_GET & CF7_POST but does not work?

    it says I can write some custom shortcode, but in a test.php file how can I pass post-id to a just created shortcode in functions file? and return value in my form later? Please help me if you know where I went wrong?

    • This topic was modified 8 years, 2 months ago by nisoran123.
Viewing 1 replies (of 1 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi there,

    I’m not sure I follow 100%, but all values are calculated when the page loads. So if you’re doing something with AJAX, you’d need to update the values dynamically after (this plugin won’t help)

    By the way, I think that’s key=’event_date’ – don’t forget the ‘t’

Viewing 1 replies (of 1 total)
  • The topic ‘Set values to dynamic text fields’ is closed to new replies.