Telephone field being used for numeric
I am using OOTB telephone field instead of the numeric field because it's input type is "tel" which forces mobile devices to pop number keypad.
How ever when I am trying to compare values of 2 telephone fields. some numbers seem to clash.
Create an adaptive form without a form model.
Add 2 telephone fields in the form.
Open rule editor of the second telephone field and add a rule in the code editor as - "this.value > telephone1.value"
add a submit button to the form.
Make both the fields required.
Remove the validation patterns for the fields.
Preview the form.
Put 2000 in the first field and 19000 in the second field which satisfies the requirement. But it still throws a validation error when you focus out of the field or when you try to submit.
I am not able to use the numeric field because it does not trigger validation error right after I focus out of the field. The text fiels and the telephone fields do.
Thanks for the help.