Percent field defaults to 0 rather than blank
I have a field formatted as a % field that I would like to show as blank until someone enters in a value. However, it automatically defaults to show "0.0%". I've found answers that say to use the validation of
if (event.value==0) event.value = "";
but when I copy/paste that it doesn't work. I also have the validation of
if (event.value !== "") {
event.value = event.value / 100 ;
}
so that people can just type in a number rather than having to deal with decimal points.
How do I combine these two things into one validation statement that does both?
