Hi there,
I am trying to introduce a function in a DCT which will only allow to enter a number or a decimal in a text field. For all other entries , it will not take any input. How can I achieve this using IWEventRegistry.ItemHandler?
You don't need JavaScript for this. Just use a validation-regex on your input field, something like
Integers > validation-regex="^[0-9]+$"Real Numbers > validation-regex="^[0-9]+(\.[0-9]+)?$"
thanks a lot, that helped