posthog icon indicating copy to clipboard operation
posthog copied to clipboard

Surface any survey creation/edit validation errors that may be within a collapsed accordion menu

Open dmarticus opened this issue 1 year ago • 0 comments

Feature request

Is your feature request related to a problem?

Eric noticed that the error message that is triggered by leaving mandatory fields empty within collapsed accordion menus doesn't make it obvious which field isn't valid – you can't see the error unless you open the accordion menu again.

Slack context: https://posthog.slack.com/archives/C034XD440RK/p1716235780884729

2024-05-20 13 50 19

Describe the solution you'd like

I think a decent solution would be to just pop open any accordion menus that have validation errors within them whenever the users tries to save the survey as a draft, for example. Seems like a pretty easy way to show existing validation errors without changing the UX of the survey too much. Only downside is that if it's a large survey and there are many validation errors, opening up all of the collapsed menus that contain errors might be a bit of a visual explosion.

Describe alternatives you've considered

Alternatively, we could outline any accordion menu, etc with a red validation error so that the user sees that something looks wrong, and then when they click into it they can see what the problem is.

dmarticus avatar May 20 '24 21:05 dmarticus