I am wondering if it is possible in the Issue/Return material module, to have the quantity be blank when it is clicked.
Background: As of now, the field has a value of 0 and our users sometimes forget to delete the 0, resulting in an additional 0 when pulling/returning material
I have tried to make a customization where the “Text” value of the field is blank instead of 0, but when I save and go in it, it just changes back to 0.
It is most likely a Numeric Editor control, which should always have a value. That’s why “blank” ends up being zero.
You could try creating an OnFocus() event that sets the text selection start, stop and length to include the whole “0” (basically doing a “Select All” upon entering the field. It won’t be blank but the very next keystroke would replace the selected text with what they are typing. Similar to what you would see if you used the TAB key to enter the field.
Hi Calvin, thank you for your response!
I just tried that, and it looks like I could not put an event if the control is not a custom control. Am I able to manually create an OnFocus or an OnClick event?