GithubHelp home page GithubHelp logo

Comments (4)

TomDo1234 avatar TomDo1234 commented on August 27, 2024 1

@justlevine

Hello Justle, this is my personal Github account, the OP is my work account.

I want to correct some details, my Gravity forms is 2.6.7, WP Graphql for Gravity forms is now 0.11.7 as I just updated and tested again.

I also want to clarify that its not that "Its still being submitted when required consents are unchecked", but even when I do value as "false" it shows up on the backend as "Yes this is ticked"

from wp-graphql-gravity-forms.

justlevine avatar justlevine commented on August 27, 2024

Hey @TomDoFuture 👋 and thanks for taking the time to report! I'm trying to replicate now.

Can you please confirm what version of WPGraphQL for Gravity Forms (it should be v0.11.7) and Gravity Forms you're using (it needs to be at least v2.5.x, but we recommend using the latest version of that as well )?

from wp-graphql-gravity-forms.

justlevine avatar justlevine commented on August 27, 2024

On further review, the issue seems to be with the documentation, which seems wasn't correctly updated in the v0.10 release.

The consentValue input was intentionally replaced with value in v0.10.0(#196), in order to make it easier to use and bring it in line with how `Gravity Forms behaves natively.

Any truthy string sent via value (GF native defaults to using the checkbox label) will mark the field value true, with an empty string or - better yet - leaving the field off the fieldValues mutation input array marking the field value false.

Here's an example for a consent field that one is not required to accept.
image

And when I change the field so it is required, it correctly returns an error message, as the user is required to consent.
image

I'll get to work fixing the docs ASAP - let me know if you have further thoughts and questions.

from wp-graphql-gravity-forms.

justlevine avatar justlevine commented on August 27, 2024

Fixed via bf84420

from wp-graphql-gravity-forms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.