Page MenuHomePhabricator

WME Website\Get started page - > the limitation of the number of characters is not obvious for the Plan text field
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:
The limitation of the number of characters is not obvious for the Plan text field
https://monosnap.com/file/CIARQ7ENMfXPGHKaRqihMfiDEWrYtG

What should have happened instead?:
The required amount of symbols should be displayed for users,
and it would be great to show a down counter of remaining characters

Event Timeline

Anna.bondar created this task.

Allowed number of characters from our side:
UseCase - 480
Full name - 255
Company - 255

But we receive the following error with Company with a text length of 255
{

success: false,
status: 422,
message: 'Data integrity error'

}
@creynolds Could you please clarify what limits for fields are set from the CRM side?

I tested 480char on the textarea and 188char on the company input and the CRM didn't error and it came through fine. I don't see anything in their documentation that says max string length but two things here...

  1. Full Name, Company, and Email we should limit to ~60. I think it'd be extremely rare for anybody to need more than that for those.
  2. For the text area I'm just changing the helper text in the field to something like "(within 480 characters)" to make it a little more clear that we don't need a novel written by them, just some text. Should be okay with that.

I made those changes in code, MR == /merge_requests/39
But for reference... I really like this implementation shown here -> https://codepen.io/CSWApps/pen/RQbvvp (this would be cool). But if we do any counter at all, at a minimum we should have one under the text area in small type like "X characters left" where default would be "480 character left" (similar to this: https://codepen.io/bawdyBunny/pen/qBEzPyW) and it updates as they type. Not a huge deal though.

Checked limits on the Products and Gettings started pages

PS: regarding the down-count of characters ("X characters left" ), a new task has been created https://phabricator.wikimedia.org/T293989