Set values to dynamic text fields
-
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?
- The topic ‘Set values to dynamic text fields’ is closed to new replies.