Hi Vanitha,
Can you try changing the context type of the input field to String and create the validation method on the onenter event
Please find the below sample code. Let me know if this not covered your requirement
String value = wdContext.currentContextElement().getNumbervalue();
if (value != null) {
if (value.length() == 1) {
value = "000" + value ;
wdContext.currentContextElement().setNumbervalue(value);
}
}
Thanks
Abdul Rahman