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.

Only show field on a certain page

  1. Hello,

    My question is simple, but I didn't know how to search for it on the forum, so my apologies if the answer is already out there.

    I now have 1 form, a pretty large form. This form is displayed on page1 and on page2. Now I want to show the first input field only on page2 and not on page1.

    Is there a way I could achieve this?

    With the kindest regards,

    Menno Richardson

    (form is found heren ut it is dutch http://www.geneeskundebaan.nl/demo/solliciteer)

    Posted 13 years ago on Thursday April 28, 2011 | Permalink
  2. The only solution is going to be to use CSS to hide the first field. You could add custom CSS to Page 1 to target that field and hide it by setting it to display: none; using CSS.

    If it's a required field in your form, you may run into an issue as it would still trigger validation. In that case you would have to pre-populate it with a placeholder value using PHP and the gform_field_value hook found here:

    http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name

    That is going to be the easiest solution, there may be more complex ways to implement it with PHP also but this would be the simplest. The alternative is creating 2 forms.

    Posted 13 years ago on Thursday April 28, 2011 | Permalink