Home › Forums › Quform WordPress › Datepicker control returns array in session variable
- This topic has 6 replies, 4 voices, and was last updated 12 years, 1 month ago by
Ally.
- AuthorPosts
- February 26, 2013 at 9:36 pm #3145
jerkski
ParticipantWhen I try to reference the session variable from my submitted datepicker field, its result is ‘Array’. Why would the result be an array? Does the date control separate month, day, year into array elements and store it that way? If so, is there any way to get it to simply store the date, not in an array?
February 27, 2013 at 9:07 am #3161Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 27, 2013 at 7:51 pm #3173jerkski
ParticipantSheer genius! I mean it! That solved my problem!
April 5, 2013 at 1:13 pm #3705ditsis
ParticipantI add the foolowin code to function php
add_filter('iphorm_success_message_5', 'mytheme_modify_success_message', 10, 2);function mytheme_modify_success_message($successMessage,$form)
{
$successMessage .= '<script type="text/javascript">
(function ($) {
$("#checkin").val("'.esc_js($form->getValue('iphorm_5_9')).'");
$("#nights").val("'.esc_js($form->getValue('iphorm_5_3')).'");
$("#rooms").val("'.esc_js($form->getValue('iphorm_5_4')).'");
$("#adults").val("'.esc_js($form->getValue('iphorm_5_5')).'");
$("#children").val("'.esc_js($form->getValue('iphorm_5_6')).'");
$("#payment_form").submit();
})(jQuery);
</script>';return $successMessage;
The checkin value is maden with text box.
when i put the date box, the return is array
I want to return as dd/mm/yyyy.Because i am not expert in php can anyone help me how to do this?
April 5, 2013 at 1:34 pm #3706ditsis
Participanti more simple words i want the iphorm 5_9 to be a datepicker and not extract the value as array but in the formation of dd/mm/yyyy.
in text box all works ok.Thank you very much in advanced
April 9, 2013 at 4:44 pm #3757Allan
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 12, 2013 at 8:04 am #3791Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.