PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Current page returns only 1

  1. pavelevap
    Member

    Hello, I tried to make 2 pages form (by inserting Page break) with second page contains only HTML field to make an order confirmation.

    I used a tutorial for gform_pre_render filter, but following code returns only 1 for me even if I am on the second confirmation page:

    $current_page = GFFormDisplay::get_current_page($form["id"]);

    Maybe, I am doing something wrong, but I am not sure what.
    Thank you for your help.

    Posted 12 years ago on Tuesday May 22, 2012 | Permalink
  2. pavelevap
    Member

    Probably related to this topic: http://www.gravityhelp.com/forums/topic/html-not-showing-with-ajax-enabled

    Tested and this problem can be seen only when ajax="true"

    Posted 12 years ago on Tuesday May 22, 2012 | Permalink
  3. David Peralty

    Can you show me the full code of your pre_render filter please?

    Posted 12 years ago on Tuesday May 22, 2012 | Permalink
  4. pavelevap
    Member

    False alarm, sorry. It looks like using AJAX there is always returned number 1. You can close this topic, thank you...

    Posted 12 years ago on Wednesday May 30, 2012 | Permalink
  5. David Peralty

    Glad you were able to sort it out. :)

    Posted 12 years ago on Wednesday May 30, 2012 | Permalink

This topic has been resolved and has been closed to new replies.