Reply To: Quform v2 version for iphorm_get_form

Home Forums Quform WordPress Quform v2 version for iphorm_get_form Reply To: Quform v2 version for iphorm_get_form

#33696
jerkski
Participant

Hi Ally, I did check out this function, but something is different. When used, it wants to load all entries (1000’s of entries) under form 2. The previous function used to only load the most recently submitted order from the form.

Am I using the correct function for this? This is what I am trying to achieve, but in Quform v2: https://support.themecatcher.net/forums/topic/use-code-from-html-email-in-a-confirmation-page

What I had done in the past was use $form = iphorm_get_form(2) in a php/html template that loaded immediately after the form was submitted. That template used iphorm_get_form(2) to display the previously submitted form entry’s labels and values.

For example, here is what I tried:

$repository = quform('repository');
$factory = quform('formFactory');
$config = $repository->getConfig(2);
if (is_array($config)) {
    $form = $factory->create($config);
    print_r($form);
}
  • This reply was modified 1 week, 5 days ago by jerkski.
  • This reply was modified 1 week, 5 days ago by jerkski.
  • This reply was modified 1 week, 5 days ago by jerkski.
  • This reply was modified 1 week, 5 days ago by jerkski.
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy