feat(checkout): CHECKOUT-10226 Show Placeholder for Extra Dropdown Field#3162
Merged
Conversation
bc-peng
commented
Jul 16, 2026
Contributor
Author
There was a problem hiding this comment.
Touching this file in order to support the SDK's interface changes.
Comment on lines
+144
to
+147
| if (isExtraField(field) && field.fieldType === DynamicFormFieldType.DROPDOWN) { | ||
| return language.translate('common.please_select_text'); | ||
| } | ||
|
|
Contributor
There was a problem hiding this comment.
Do we see any issues in fixing this for custom fields as well?
Contributor
Author
Comment on lines
+124
to
+130
| it('does not render placeholder for custom dropdown field', () => { | ||
| renderAddressFormComponent({ formFields }); | ||
|
|
||
| expect(screen.getByText('Custom dropdown')).toBeInTheDocument(); | ||
| expect(screen.queryByText('Please Select')).not.toBeInTheDocument(); | ||
| }); | ||
|
|
Contributor
There was a problem hiding this comment.
Should we get rid of this test then?
Contributor
There was a problem hiding this comment.
I say because this feels like custom dropdown will not have placeholder, while we know it will always have a placeholder regardless, not just this placeholder
richapatel1510
approved these changes
Jul 16, 2026
|
checkout-js deployed to Integration US |
|
checkout-js deployed to Staging US |
⚡️ Lighthouse results🖥️ Desktop:
📱 Mobile:
|
|
checkout-js deployed to Production US |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


What/Why?
Add a clear placeholder to help users select an option from the extra-field dropdown.
Rollout/Rollback
Revert.
Testing
Existing B2B checkout
New Extra Dropdown Field on OOPC
Address
Order
Note
Low Risk
UI-only placeholder behavior for B2B dropdowns plus a dependency bump; the payment test change aligns with SDK response shape and does not alter production payment logic in this diff.
Overview
Adds a localized "Please Select" first option for B2B extra-field dropdowns on address forms and order extra fields at payment, via
common.please_select_textandDynamicFormFieldplaceholders inAddressFormandOrderExtraFieldsFieldset.Bumps
@bigcommerce/checkout-sdkto^1.942.2and updates a payment integration test mock so order-submit responses expose B2B address IDs underorder.b2bMetadatainstead ofb2bContext.Reviewed by Cursor Bugbot for commit b78e206. Bugbot is set up for automated code reviews on this repo. Configure here.