Hi there-
Suppose that, in the database, we have a field with text values like STORE001_Sobeys, STORE002_MyStoreName, STOREZ4D_JohnsStore
How do we create a function that lets us change each value as it is displayed in the form grid, to:
Sobeys, My Store Name, John’s Store
Then, if the value is saved, we’d run a function to save it as the correct value (STORE0001_Sobeys, etc) in the database.
We don’t want to have a lookup table, unless that’s truly the only way… There are too many different values and possibilities and they change all the time. We’d rather write a PHP function.