USDAForestService/fs-open-forest-platform

As an Open Forest Admin I'd like both the "Business name" field in the TOG application and the "Organization name" field in NCGU application to have their character limits restricted to 30 characters so that I can know end user's applications will be accepted to SUDS.

Opened this issue · 4 comments

Notes

While troubleshooting the reason for a certain applicant's application not being accepted into SUDS it was determined that two fields in the Open Forest platform that require user input point to the ORG_CODE column in the SUDS database. Unfortunately, this column only accepts a string of 30 characters or less.

For the time being, the fields in our Open Forest application that point to this column (as pictured below) need to have their character limits restricted to 30 characters with accompanying hint text and error message so that the user is made aware of this restriction before making the input and in the event that they exceed the limit.

BusinessNameField.PNG

OrganizationNameField.PNG

Tasks

  • Restrict the character limit of the "Business name" field to 30 characters
  • Add hint text to the "Business name" field to make the user aware of the 30 character limit
  • Change the error message that fires for the "Business name" field to trigger at 30 characters so that the user is aware if they have passed their limit
  • Restrict the character limit of the "Organization name" field to 30 characters
  • Add hint text to the "Organization name" field to make the user aware of the 30 character limit
  • Change the error message that fires for the "Organization name" field to trigger at 30 characters so that the user is aware if they have passed their limit
  • While making these corrections, determine which column/s in our DB the "Business name" and "Organization name" fields are pointing to for future improvements
  • Make a card for the Icebox linked to this card explaining the changes that were made and laying out the steps needed to get the ORG_CODE column in the SUDS DB changed to allow at least 60 characters
  • PO approved

Definition of Done

  • Both the "Business name" and "Organization name" fields have had their character limits restricted to 30 characters
  • Both the "Business name" and "Organization name" fields have hint text warning the user that they are only allowed 30 characters for their business' or organization's name
  • Both the "Business name" and "Organization name" fields have error messages that are thrown when a user inputs more than 30 characters
  • A card has been created in the Icebox pipeline to ensure follow up to this issue

@aQuib - Hey Aquib, would you mind taking a look at a change I made for this card? As you can see in the screenshots below I added some hint text to two fields, that informs the user of a character limit. Is hint text okay in the situation? And, if so, do you like the current format or is there any change you'd like me to make?

Thank you sir!

BusinessNameNoHint.png
Business name HInt.png

OrganizationNameNoHint.png
Organization name Hint.png

aQuib commented

@Dmac26 - I would move the location to right below the input field and reduce the text to say "Only 30 character allowed" etc (which adhere more to USWDS approach for character counter limits)

@Dmac26 This card looks good except for referencing the subsequent card. If you can make sure to tag the Icebox card here, then we can move this to awaiting acceptance. Thanks!

tested to be working correctly on dev