restrict all characters except some few char

restrict all characters except some few char

karthik.rkarthik.r Posts: 20Questions: 3Answers: 0

hello allan,

attr: {
type: Allow - A-Z, a-z, 0-9, . , -, <space>
}

weather we can restrict string field to allow only numbers and A-Z string and some required special case using attribute

regards
karthik

Answers

  • allanallan Posts: 63,683Questions: 1Answers: 10,498 Site admin

    You would need to listen for the keypress event on the input element (field().input()) and reject any that you don't want by calling e.preventDefault().

    Allan

This discussion has been closed.