Thanks Rob, Sorry for the long delay in responding. Went to Hawaii for a month and then stuff just got away from me. I have used this method before, but it just makes my forms seem so bloated when there are a bunch of fields I want do this for. In this case there are six fields in one form that I want to be notified about when they are updated. I thought there might be a pure coding method for this. Is there a way to pass previous field values obtained by the frm_after_update_entry hook to the notification email and then send?
I'm not sure what you mean by bloated. You can change all the field keys to have the same prefix and your if statement would just be "if field_key starts with my_prefix". You can use frm_after_update_entry, it will have to be frm_pre_update_entry if you want to get the changed values. For the notification you can fire that off anywhere you want.
By bloat, I just meant putting a bunch of fields in my form to save the previous values in. I have one form that has at least a dozen 'previous value' fields in it. Your suggestion about using meaningful names for field keys is a good one, thanks!
Please login or Register to submit your answer