Hello,
We are using a custom form based on the long version sample form.
When trying to add a conact (via add_contact.php) that already exists the following non-descript error message appears formatted in a red box:
"An Error Occured"
We'd like to add a descriptive sentence to the error message and I am not sure which file that came with the sample forms needs to be altered to expand the error message text. Any guidance would be appreciated. Thank you very much.
Hi, The error messages are
Hi,
The error messages are set in cc_class.php, and at the moment, it displays the message returned by our system.
If you look at addSubscriber() in cc_class.php, you will see that we set "lastError" variable with a message returned by the API call. You need to change this if you want to customize the error message.
Chang Suh
Product Manager, Constant Contact