Home › Forums › Quform WordPress › Quform v2 version for iphorm_get_form
- This topic has 6 replies, 2 voices, and was last updated 3 years ago by jerkski.
- AuthorPosts
- November 11, 2021 at 6:38 pm #33674jerkskiParticipant
Hello, I am having trouble migrating some old code from v1. Is there a compatible function in v2 for iphorm_get_form?
November 12, 2021 at 6:12 pm #33679jerkskiParticipantNovember 15, 2021 at 5:22 pm #33683jerkskiParticipantThe function used to exist in iphorm-form-builder/includes/common.php, but I do not see a comparable function in Quform v2. Any hints?
November 16, 2021 at 10:04 am #33687AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
November 16, 2021 at 6:51 pm #33696jerkskiParticipantHi 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 usediphorm_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); }
November 18, 2021 at 10:49 am #33707AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
November 22, 2021 at 6:40 pm #33715jerkskiParticipantHi Ally, we had emailed you the code for review. Thank you!
- AuthorPosts
- You must be logged in to reply to this topic.