Forum Replies Created
- AuthorPosts
ditsis
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
ditsis
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?
- AuthorPosts