Hi.
I have numeric field (price) on form which sometimes needs sanitizing because values are pasted from different sources. I have working function for that, it checks if decimal separator is correct, removes any text parts (€ signs for example) etc. Problem is that i can't figure out which event should i put it. AfterUpdate fires too late and gives error if entry is not correctly sanitized. BeforeUpdate fires too early and the passes null to function if textbox is empty. Yes, i could use extra unbounded textbox for input, but seems clumsy. Any ideas or experience?
I have numeric field (price) on form which sometimes needs sanitizing because values are pasted from different sources. I have working function for that, it checks if decimal separator is correct, removes any text parts (€ signs for example) etc. Problem is that i can't figure out which event should i put it. AfterUpdate fires too late and gives error if entry is not correctly sanitized. BeforeUpdate fires too early and the passes null to function if textbox is empty. Yes, i could use extra unbounded textbox for input, but seems clumsy. Any ideas or experience?