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.

Random form

  1. armand panganiban
    Member

    Hello,

    I recently purchased gravityforms. I just wanted to ask how I may be able to randomize the form in a post body. I have created short question forms, and would like upon refresh that they display a different form....or even if there may be a way to randomize the questions of a specific form and only display a certain number.

    Is there a plugin, or easily accessible snippet of code that may help me do this?

    Thanks,
    Armand

    Posted 14 years ago on Wednesday March 16, 2011 | Permalink
  2. Randomize which form is called? That isn't a built in feature so it would definitely have to be done using some sort of shortcode or PHP in the template.

    You would have to use PHP to do this and you'd have to call the form in your theme template file via PHP. You would have to know which form id's you want to display and then write PHP to randomly select one and then call the form using the form function call to display it.

    If you aren't familiar with PHP you may need to get a WordPress developer to assist you with this type of implementation.

    Posted 14 years ago on Wednesday March 16, 2011 | Permalink
  3. armand panganiban
    Member

    I'm a little familiar with PHP, thanks for input. I'll give it a shot.

    Posted 14 years ago on Wednesday March 16, 2011 | Permalink
  4. armand panganiban
    Member

    Just as an update, I found a plugin called 'random text', and they seem to work well together.

    Posted 14 years ago on Wednesday March 16, 2011 | Permalink
  5. armand panganiban
    Member

    The form seems to be working, but I do have one concern, and for one of my forms, GF is reporting back more entries than views...

    Posted 14 years ago on Wednesday March 16, 2011 | Permalink
  6. @armand One thing to note is I believe Views don't count the admin viewing the form. So any accounts with the Admin role, their views don't count. Because testing, etc. would inflate these numbers. So if you have submitted test entries, etc. your entries are still there but your views aren't counted. That is why it's always good to delete test entries, etc.

    Caching can also impact view counts. If you are using a caching plugin that prevents the information from being updates.

    The views count is intended to be simple analytics. They aren't 100% foolproof as far as things preventing views from being counted such as caching, etc. That is why using something like Google Analytics is much more reliable and viewing page views for the page the form is on, etc.

    Posted 14 years ago on Wednesday March 16, 2011 | Permalink
  7. armand panganiban
    Member

    Ok, thanks, that's good to know. I was viewing them while logged in as an admin. I figured it may have been something to do with caching, but not so much being related to the admin account. Thanks!

    I have been browsing the forums a bit, and have found some good ideas. Is there possibly a repository of 'great uses' in the form of a list or forum post..Maybe just a few ideas to get the blood flowing upstairs...

    Thanks again,

    Armand

    Posted 14 years ago on Thursday March 17, 2011 | Permalink
  8. @armand Currently there is not, but people are using Gravity Forms in a lot of innovative ways. Especially when they put the hooks/filters to use to customize it. We will be launching a new site next week that will have all new documentation that will document all the available hooks/filters which should help users that know PHP to realize how many different things they could do using Gravity Forms via customizations using these hooks/filters.

    Posted 14 years ago on Thursday March 17, 2011 | Permalink