Hi, I am looking for a way to restrict a text box in a form in order to take only numbers and thus impede the user to put letters, specials caracters etc. I have seen few posts here but none of them seem to have worked for me.
here are some similar topics that I came across during the research on pega support area.
On property field, in the “Advanced tab”, the ‘Use Validate’ there are some options and the most relevant one was the method “IsInteger”, but it is a big number with 11 characters and it won’t take as it turn up an erro message saying it is not a valid integer.
isPosDecimal indeed validates with big numbers which is the intent.
However, is there a way to remove/modify the message that it turns up like in the picture I’ve attached, it shows “3344839998T is not valid” which can be fine. Despite that, it is asking to enter a value such as 10.2 which is not the intent here, I mean, this field is not suppose to take dots, comma etc, just numbers and gives an invalid message.
We have to write our own java message or edit the field value for that, for the editing the field value is not best practice, any way you can try by using the saveas field value,
Rule Type: Field Value
Rule Name: pyMessageLabel • numeric_decimalMsgStr