Populate the value to date field programmatically

Home Forums Quform WordPress Populate the value to date field programmatically

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26398
    Venom
    Participant

    Hi Ally,

    I have a form with a Datepicker field, I want to set the value of date field in pre_display action hook and trigger a change event on the datefield programmatically. I referred to the previous sample to retrieve the Datefield using javascript. It just returned undefined. If I put the code in Setting->Custom Javascript, it could show the object.

    How do I get the Datepicker object in pre_display filter hook?

    Date field onclick to display the Datepicker

    
    
     $('.quform-field-xx_01').val('02-12-2018');
    
      kendoDatePicker = $('.quform-field-xx_01).data('kendoDatePicker');
    
      alert(kendoDatePicker); // undefined displayed
    
    

    regards,
    Venom

    • This topic was modified 6 years, 11 months ago by Venom.
    #26463
    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 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy