Hi, I'm working on this and it works when my custom field is set to Date and the Date Input Type set to "Date Picker". But, when I try the Date Field option it no longer works.
Here is the code I used:
[php]
add_filter("gform_pre_submission_1", "populate_date");
function populate_date($form){
$_POST['input_11'] = $_POST['input_12'];
}
Date Picker just makes one input field, but Date Field nests 3 inputs like 12_1, 12_2, 12_3
Is there away to just make it say '$_POST['input_11'] = $_POST['input_12_1', 'input_12_2', 'input_12_3'];' ?
I would like to use the Date Picker in the first place, but there seems to be a javascript conflict on my site that breaks the pop-out calander :/ So, I've been trying to get the Date Field to work for a while with no luck.
Posted 11 years ago on Sunday April 7, 2013 |
Permalink