Skip to content

Commit

Permalink
feat: provides the length of characters typed for opportunity product
Browse files Browse the repository at this point in the history
  • Loading branch information
brobro10000 committed Jun 27, 2023
1 parent 862cd42 commit bf212f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ const ProvisioningFormCustomer = () => {
onChange={handleChange}
data-testid="customer-financial-identifier"
/>
{isOpportunityProduct && (
<Form.Control.Feedback>
{financialIdentifier.length}/{CUSTOMER.FINANCIAL_IDENTIFIER.MAX_LENGTH}
</Form.Control.Feedback>
)}
{!isOpportunityProduct && (
<Form.Control.Feedback
type="invalid"
Expand Down
1 change: 1 addition & 0 deletions src/Configuration/Provisioning/data/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const PROVISIONING_PAGE_TEXT = {
},
FINANCIAL_IDENTIFIER: {
TITLE: 'Opportunity Product',
MAX_LENGTH: 18,
ERROR: {
validity: 'Invalid format. Must be 18 characters long, alphanumeric and start with \'00k\'.',
emptyField: 'Please enter a valid opportunity product.',
Expand Down

0 comments on commit bf212f8

Please sign in to comment.