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

Surveys: Changes are lost on save when editing a survey that contains errors #27812

Closed
ioannisj opened this issue Jan 23, 2025 · 1 comment · Fixed by #28762
Closed

Surveys: Changes are lost on save when editing a survey that contains errors #27812

ioannisj opened this issue Jan 23, 2025 · 1 comment · Fixed by #28762
Labels
bug Something isn't working right feature/surveys

Comments

@ioannisj
Copy link
Contributor

Bug Description

Bug description

When editing a survey that contains errors (e.g link is not https) and clicking “Save”, the app redirects the user back and all unsaved changes to the survey are lost.

This makes it frustrating for users who invest significant time creating surveys, as they must recreate their work from scratch after encountering this type of error.

How to reproduce

  1. Edit an existing survey.
  2. Add or edit a link question and enter a link with an invalid format (e.g http://www.google.com)
  3. Click "Save"
  4. Survey exits edit more, the following error is shown and changes are lost
Update survey failed: Link must be a URL to resource with one of these schemes [https, mailto]

Additional context

Debug info

- [ ] PostHog Cloud, Debug information: [please copy/paste from https://us.posthog.com/settings/project-details#variables or https://eu.posthog.com/settings/project-details#variables]
- [ ] PostHog Hobby self-hosted with `docker compose`, version/commit: [please provide]
- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]
@ioannisj ioannisj added bug Something isn't working right feature/surveys labels Jan 23, 2025
@ioannisj
Copy link
Contributor Author

Found this old issue that's related: #18614

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right feature/surveys
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant