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.

Terms & Conditions type facility?

  1. Hi - i've been implementing gravity forms on all my sites for a while now and i keep running into the same question - is there a facility to put a T&Cs type button in - ie so that a user has to tick a T&C box box before the form is submitted - but when the user clicks on the 'I agree with the T&Cs' link - a field popups up or displays briefly? - i've read around the forums - people talk about paragraph elements and page or section breaks but i don't think these solutions are ideal? - anyone got any ideas?

    Thanks and AMAZING plugin! best WP plugin around!

    Posted 13 years ago on Friday July 8, 2011 | Permalink
  2. This can be implemented a variety of ways.

    If you want to popup the terms and conditions you can use a Checkbox field and include a link to the terms and conditions in the Checkbox Label value. Then make it a required field. The user won't be able to submit the form unless they check to agree to the terms and conditions, and in the choice label you can include a link to the terms and conditions because it supports HTML. It would look like this: http://i.imgur.com/7Fw6s.png

    If you want to display the terms and conditions right on the page you can use the Section Break field. Give it a Field Label of "Terms and Conditions", put the Terms and Conditions text in the Field Description. Then go to the Advanced tab and give it a CSS Class Name of gf_scroll_text which will make it a scrolling text box. Then add a Checkbox field below the Section Break that contains your "I agree..." checkbox, you can leave the Field Label completely blank and instead go to the Advanced Tab and populate the Admin Label so there is a label for this field in the admin. It would look like this: http://i.imgur.com/D50yu.png

    Posted 13 years ago on Friday July 8, 2011 | Permalink
  3. matteod
    Member

    Hi Carl, I purchased Gravity Forms today so have the latest version. I am trying to implement the first solution above and have included a link as the checkbox label value, but it just ends up displaying the html code. There is no clickable hyperlink,

    Any idea where I might be going wrong?

    Thanks

    Matt

    Posted 13 years ago on Sunday July 10, 2011 | Permalink
  4. Thanks a million guys for getting back! - both options are nice! - i'd love if there were a type of field where a user could click and the field opens and closes jquery style or something! Popups are unreliable, moving to another page is not the best solution. The section break with the scroll is not bad, thanks for this!

    Posted 13 years ago on Monday July 11, 2011 | Permalink
  5. @matteod HTML is supported in the checkbox label, but not the value. Make sure your HTML was entered correctly. If you copy-n-pasted you may have copy-n-pasted additional characters by mistake. It sounds like if your HTML is being displayed that it's been encoded, which Gravity Forms doesn't do.

    Posted 13 years ago on Monday July 11, 2011 | Permalink
  6. matteod
    Member

    Thanks Carl, I have it working now. My mistake was to include the code in the field label value, not in the checkbox label value.

    Cheers

    Matt

    Posted 13 years ago on Thursday July 21, 2011 | Permalink
  7. Good to hear. Yes, the checkbox choice label supports HTML but the value does not. The value isn't displayed, it's only used in the entry detail, etc. as the value of the field selected. Glad you figured it out.

    Posted 13 years ago on Thursday July 21, 2011 | Permalink

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