Exceptions & Errors - echoing out
Permalink
I've implemented the function to echo out an error as noted here:http://www.concrete5.org/documentation/developers/system/error-hand...
Bottom line: I need it to not prevent my form from being submitted even if there is an error.
I'm using this in the context of a shipping method for ecommerce and it is in the case that a shipping price cannot be parsed due to an error in the address. I need the error to be spit out, but then the form that they submit for the address doesn't go through because I spit the form out. As soon as I remove:
the form works and does move on
Bottom line: I need it to not prevent my form from being submitted even if there is an error.
I'm using this in the context of a shipping method for ecommerce and it is in the case that a shipping price cannot be parsed due to an error in the address. I need the error to be spit out, but then the form that they submit for the address doesn't go through because I spit the form out. As soon as I remove:
$val->add(t('An error has occurred in the shipping calculation; please review your address to ensure accuracy.'))
the form works and does move on