I'm trying to make my TextField accept only characters using keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Text)
as:
TextField(
value = query3.value,
onValueChange = { newValue ->
query3.value = newValue
},
singleLine = true,
label = {
Text(
"Bank name",
color = colorResource(id = R.color.bright_green),
fontFamily = FontFamily(Font(R.font.poppins_regular)),
fontSize = with(LocalDensity.current) { dimensionResource(id =
R.dimen._12ssp).toSp() },
)
},
interactionSource = interactionSource,
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Text),
.
.
.
But the soft keyboard still allows entering numbers. How do I make the soft keyboard allow entering ONLY characters?