Datepicker control returns array in session variable

Home Forums Quform WordPress Datepicker control returns array in session variable

This topic is: resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #3145
    jerkski
    Participant

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

    #3161
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #3173
    jerkski
    Participant

    Sheer genius! I mean it! That solved my problem!

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

    #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

    #3757
    Allan
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #3791
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy