webiny-examples icon indicating copy to clipboard operation
webiny-examples copied to clipboard

CRA FormBuilder query no longer working (solution)

Open damianesteban opened this issue 4 years ago • 0 comments

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?

damianesteban avatar May 02 '21 16:05 damianesteban