Populate form array

Home Forums Quform WordPress Populate form array

This topic is: not resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7317
    desseily
    Participant

    I retrieved the form data from the quform database through a foreach statement and populate an associative array with the data. When I printed the array all the data is there for example;

    ‘iphorm_1_1’ => ‘David’

    The array name is $formVariable

    then I transfered the $formVariable array to the $form

    $form->setValues($formVariable);

    It’s not working. Can you please help? What I’m I missing?

    #7329
    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.

    #7340
    desseily
    Participant

    I got it working, thanks for you help. I have another question. Now That I can populate a form based on one field. How can I pass the field from one form to the other. I have a search form that the user will input an id. I want to pass the id to my larger form and lookup the id to fill in the form data.

    #7350
    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 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy