M
Miles
I have a simple textbox on an infopath form to enter an invoice amount. The
customer wants to have all sorts of custom logic appied to the text, for
example typing in "555" results in $5.55, typing in "555." results in
$555.00. Typing in "55555" results in $555.55". Saves them time they
say--don't ask.
In any case, I have the logic in place, but I find that infopath strips out
a trailing period automatically for numeric values. For example, when I set
a break point in the code, if you type "123.00" then you get "123.00", but if
you type "123." then you get "123" without the trailing period.
Interestingly, if you type "abc." then you do get "abc." with the period.
Has anyone seen this or have a workaround for it? I actually want the
trailing period as I need to apply custom logic to the value based on the
fact that it has a trailing period.
Thanks in advance
customer wants to have all sorts of custom logic appied to the text, for
example typing in "555" results in $5.55, typing in "555." results in
$555.00. Typing in "55555" results in $555.55". Saves them time they
say--don't ask.
In any case, I have the logic in place, but I find that infopath strips out
a trailing period automatically for numeric values. For example, when I set
a break point in the code, if you type "123.00" then you get "123.00", but if
you type "123." then you get "123" without the trailing period.
Interestingly, if you type "abc." then you do get "abc." with the period.
Has anyone seen this or have a workaround for it? I actually want the
trailing period as I need to apply custom logic to the value based on the
fact that it has a trailing period.
Thanks in advance