Trim / remove all space in text-field when copying/paste

Hi

I config textfield for credit card it show keyboard pad only number with

- type: component.text-field
          instanceId: cardNumber
          options:
            label: Card Number
            errorText: =@ctx.datasources.creditCard.text.errors.accountNumber
            icon: shield
            textContentType: creditCardNumber
            maxLength: 16
            keyboardType: decimal-pad

but when copy 4543 2500 0221 1886 and paste to the field it contains space.

Can now we prevent or remove spaces functional?

Hi @nook

Currently, adding a mask to the input field to force a certain input format is not possible. A feature request has been raised for the input mask capabilities.

Thanks
L

1 Like