Troubleshooting · Developer docs

Troubleshooting

Grouped by symptom, never by module, because the person with the problem does not know which module has it. One hundred questions across ten pages, each answered with the causes in the order they usually turn out to be true.

Answer API requests

Showing an error when a JS-model submission is rejected

Every JS-model form needs the result callback: put data-submit-result-callback="formResult" on the .coredna-js-form container and define window.formResult in the site's script. The platform calls it with the response first, for every answer including a 207, a 422 or a 500, and does nothing more when it returns false, so the callback shows the messages, keeps the answers and gives the buttons back.

The callback is in Add the platform's form scripts to a form layout, and with the jump back to an earlier step in Validation.

More in API requests

  1. A conditional field never appears, or never hides
  2. My properties fields come back as "Error: Getter for property … not found", or glued together
  3. "414 Request-URI Too Long", or my long properties selector stops working
  4. The selector in my GET body was ignored, and the full record came back
  5. My filter returned every record

Was this page helpful?

Your answer goes to the docs team.