Change Field Format Based on User Input
Apologies if this has been asked before... I searched and couldn't find an answer.
I have several fields that need to be dynamically formatted based on a user's input. Each field should allow a user to enter text (most always will be "N/A") OR be formatted as a number with a currency symbol.
I've been playing around with the following code but am not sure if I'm approaching this correctly, and can't figure out where I should place it (Keystroke, Format, Validation, all three)?
function formatSwitch() {
if (typeof event.value =="number") {
AFNumber_Keystroke(2, 0, 3, 0, "$ ", true);
}
Thank you!
