Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRA FormBuilder query no longer working (solution) #51

Open
damianesteban opened this issue May 2, 2021 · 0 comments
Open

CRA FormBuilder query no longer working (solution) #51

damianesteban opened this issue May 2, 2021 · 0 comments

Comments

@damianesteban
Copy link

The CRA Form Builder example was no longer working due to the graphql query, however I was able to fix it, the query is below:

{
  formBuilder {
    getPublishedForm(parent:"XXXXXXXXXXXXXXXXXXXXX") {
      data {
        id
        fields {
          _id
          fieldId
          type
          label
          placeholderText
          helpText
          options {
            label
            value
         }
          validation {
            name
            settings
            message
          }
          settings
        name
      }
        layout
        triggers
        settings {
          reCaptcha {
            enabled
            errorMessage
            settings {
              enabled
              siteKey
              secretKey
            }
          }
          layout {
            renderer
          }
          successMessage
          submitButtonLabel
          termsOfServiceMessage {
            enabled
	  errorMessage
          }
        }
    }
      error {
        message
      }
    }
  }

That query is part of the Webiny Form component, correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant