Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Datepicker control returns array in session variable #3706
    ditsis
    Participant

    i 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

    in reply to: Datepicker control returns array in session variable #3705
    ditsis
    Participant

    I 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?

Viewing 2 posts - 1 through 2 (of 2 total)
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy