Hello,
I'm using PHPRunner 4.2 and it's great! (We've just started using PHPRunner 5.1.) I have a problem that has really stumped me!
I have an Add page with a credit card field that is used to capture CC# (Visual Editor validates as credit card and defaults to empty). On the "Before record added" event, I insert into another (encrypted) table and the resultant key ID is put into this CC# field. (I save the resultant key ID because I need to decrypt in the future for recurring billing purposes.)
The client wants to COPY. So on the "Choose page" screen, I enable Copy record. I use the "Copy page: OnLoad" event to blank-out the CC# (which is the encrypted table key ID from above, which, BTW, doesn't and shouldn't pass the cc validation). PROBLEM: If the client does NOT keypunch a new CC#, how do I save the pre-existing CC# (that I've just blanked-out) when I submit the copy page? (If the client DOES keypunch a new CC#, there is NO problem, I just follow the Add page logic to encrypt the CC# mentioned above.)
(There is NO problem on the edit page because the Before record update event contains both $values and $old_values arrays.)
Thank you in advance!