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.

Display Entry Value on Page

  1. I need to have a form with a single text field where a user enters a value. I then need the value of the entry to display dynamically on the page as soon as the form is submitted. (It will appear inside a code snippet that the user can copy/paste)

    What are my options for doing this? Is there a way to do it without creating a custom page template (maybe using a shortcode or something)? I also would like the value to display on the same page as the form. Ideally this would be done using Javascript to avoid reloading the page, but I can have the page reload with the posted data if needed.

    Thanks in advance for any input/direction.

    Posted 12 years ago on Monday September 24, 2012 | Permalink
  2. Create a form to collect your visitor's input. Then, in the confirmation text (on the confirmation tab, use "Text"), use the merge tag for the data they entered (from the drop down), in the middle of your code. Use AJAX when you embed the form in the page so that the submission happens in place and without a refresh. Does that accomplish what you want to do?

    Here is the code for a sample form to do just that:
    http://pastebin.com/download.php?i=qvndvWka

    Save that form as form.xml or something, then import it into your Gravity Forms installation.

    It will accept input in one text field, then on the confirmation page use that code in embed code for Vimeo. It's just an example of how to use the user input in your confirmation text. Let me know if you have any questions.

    Posted 12 years ago on Monday September 24, 2012 | Permalink