Radio Button Changes Default Value of Text Box
I have a text field with a default value, which tells the Customer what info needs to go into that field. In this text field, I have "On Focus" and "On Blur" actions to have the default value grey, but anything the Customer writes, overwrites the default value (without the Customer having to delete it), and then their text is black. This text field is working great.
However, when one radio button is selected (out of two, it's only one or the other), I want the same functionality, but a different default value. For example, the text field's default value is currently "Company Name", but when that one radio button is on, I want the default value of that text field to change to "Order#" (with the Customer being able to overwrite it, without having to delete anything, changing the color from grey to black).
I tried writing a "Mouse Up" Javascript under the radio button itself to have that text field change to "Order#" when on, but then the Customer has to delete "Order#" to write their order#, which is annoying. And I also tried the code mentioned in the below article (the one for the Custom Calculation in the text field), but I couldn't get it to work at all (maybe some conflicting codes?...) and I'm not sure it's really what I need.
Thanks in advance for taking the time! Hoping this one is easy for you guys 🙂
