tasvideos icon indicating copy to clipboard operation
tasvideos copied to clipboard

AddEditPoll poll option value error message

Open meshuggahtas opened this issue 2 years ago • 0 comments

While problems with Question gets a nice message as The field Question must be a string with a minimum length of 8 and a maximum length of 200. , there is only "Invalid options value" for poll options.

Example problem:

  • The field has a ~256~ (edit: 250 ) https://github.com/TASVideos/tasvideos/blob/3cb375c178bbf4eb6a8cae28de69c7e50c95cb1f/TASVideos/Pages/Forum/Topics/Models/PollCreateModel.cs#L27 max size. Entering a longer option will be saved for the client in that field, without informing them about the input size problem.
  • (edit) Only 1 option. You need at least two options but there is no information about this.

meshuggahtas avatar Mar 18 '22 07:03 meshuggahtas