Dynamic Value Not posted
-
Hi, First of all thank you for this plugin.
I am generating a hidden field in contact form with this code [hidden Myid] and posting it in CFDB with the combination of different from fields with this code:function add_new_id($formData) { $formData->posted_data['Myid'] = $formData->posted_data['Name'].$formData->posted_data['Age'].$formData->posted_data['DOB']; return $formData; } add_filter('cfdb_form_data', 'add_new_id');
The Field is successfully generated like this : Amenda211998-02-01
These values also show in CFDB datatable
But when I try to post this dynamic value with form to post all the contact form fields posted except ( Myid ) my form to post Code is:// Next line sets the post_title value $form_data->posted_data['post_title'] = "My ID is {$form_data->posted_data['Myid']}";
I also tried to load this dynamic key with this code but it doesn’t help
// Next line sets the post_title value // Next line sets the post_content value $Myid = implode('_ , _' $form_data->posted_data['Myid']); $form_data->posted_data['post_title'] = "My ID is {$form_data->posted_data['$Myid']}";
Please suggest me solution I am not good at PHP.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Dynamic Value Not posted’ is closed to new replies.