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

fix(storefront): STRF-5678 fixed the check for max length in create account fields #1647

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

bc-nataliya
Copy link
Contributor

What?

Top 20 bug reports that while user can set the max length for the account sign up fields it is not respected in the storefront

Tickets / Documentation

https://jira.bigcommerce.com/browse/STRF-5678

Screenshots (if appropriate)

Screen Shot 2020-03-12 at 2 00 08 PM

To test:

  1. Navigate to Control Panel -> Advanced Settings -> Account Sign up
  2. Change max length on any text field (for example Address 1 field)
  3. Navigate to storefront and click on Register
  4. Type in the field with defined max length and observe how it is not allowing you enter more characters than specified in max length

ping @bigcommerce/storefront-team @bigcommerce/artemis-dt

@bigbot
Copy link

bigbot commented Mar 12, 2020

Autotagging @bigcommerce/storefront-team @davidchin

Copy link
Contributor

@lord2800 lord2800 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@junedkazi junedkazi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bc-nataliya
Copy link
Contributor Author

@junedkazi multiline doesn't have an option of setting max length

@@ -2,5 +2,5 @@
<label class="form-label" for="{{id}}_input">{{label}}
{{#if required}}<small>{{lang 'common.required' }}</small>{{/if}}
</label>
<input type="text" id="{{id}}_input" data-label="{{label}}" name="{{name}}" {{#if value}} value="{{value}}"{{/if}} {{#if placeholder}} placeholder="{{placeholder}}"{{/if}} class="form-input" aria-required="{{required}}" {{#if private_id}}data-field-type="{{private_id}}"{{/if}}>
<input type="text" id="{{id}}_input" data-label="{{label}}" name="{{name}}" {{#if value}} value="{{value}}"{{/if}} {{#if placeholder}} placeholder="{{placeholder}}"{{/if}} class="form-input" aria-required="{{required}}" {{#if private_id}}data-field-type="{{private_id}}"{{/if}} {{#if maxlength}}maxlength="{{maxlength}}"{{/if}}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could consider putting the space inside the {{#if}} block so it only makes it to the markup if this argument is used 🍹

@junedkazi junedkazi changed the title fix(storefront): STRF-5678 fixed the check for max length in create a… fix(storefront): STRF-5678 fixed the check for max length in create account fields Mar 12, 2020
@junedkazi junedkazi merged commit dbadd2d into bigcommerce:master Mar 12, 2020
@bc-aodvak
Copy link

tested on integration
Set length for all fields to 5, except State - set to 1 and zip - set to 2.

Screen Shot 2020-03-12 at 3 18 35 PM

looks good 💚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants