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.

Wordpress User questions

  1. PK84
    Member

    Hi, we're looking to run a weekly competition on our website where users can predict the scores of football matches. It looks like I could set up a form to do this with a 2 Column layout and maybe some additional styling (essentially we'd like it to look like the layout here http://ianhaycox.com/worldcuppredictor/football-league-prediction-form/ albeit without the bonus radio button column).

    What we are keen on is having new users be able to register without having to leave the page which it looks like the Wordpress User plugin in the Developer edition can do?

    Does this also give existing users who aren't logged in the opportunity to login & submit as well?

    I presume that if a user is already logged in they would just get the submit button?

    The only other thing we'd quite like is for users to be able to enter scores for say 5 out of 10 matches, is it possible to either flag up when the user tries to submit that they've entered too many/too few, or hide the remaining matches once five have been entered?

    Hope that all makes sense if you want me to clarify anything please let me know.

    Posted 11 years ago on Saturday April 13, 2013 | Permalink
  2. What we are keen on is having new users be able to register without having to leave the page which it looks like the Wordpress User plugin in the Developer edition can do?

    You can accept the form submission AND register the user at the same time when using the User Registration add-on (requires a developer license, as you noted.)

    Does this also give existing users who aren't logged in the opportunity to login & submit as well?

    Not really. It sounds like you have a few scenarios:

    1. user needs to register
    2. user is registered but not logged in
    3. user is registered and logged in

    For 1: you can register them and accept the form submission at the same time.

    For 2: the user will need to log in. One way to do that is to force the form to be visible only to logged in users. Instead of showing the form to them, since they are not logged in, you can show them a login link and a register link. The login link can be used to log them in, then redirect them to the form page. The register link can be used to register them and allow form submission at the same time.

    For 3: No problem. They will be shown the form since they are logged in. Since the form has user registration built into it, you will want to use something like this to skip registration for logged in users: http://gravitywiz.com/skip-user-registration-for-logged-in-users/

    The only other thing we'd quite like is for users to be able to enter scores for say 5 out of 10 matches, is it possible to either flag up when the user tries to submit that they've entered too many/too few, or hide the remaining matches once five have been entered?

    To enable restrictions like that on the number of field entries which can be made, you can use some JavaScript or jQuery to watch the input, then stop the user from entering more. Or you can use the gform_validation filter to check the input the visitor submitted, and if they filled out too many fields, return a validation error and error message.

    http://www.gravityhelp.com/documentation/page/Gform_validation

    Posted 11 years ago on Sunday April 14, 2013 | Permalink