I've got a databound form with an additional field which is processed before adding to the database (it's a UK postcode which I convert to a latitude/longitude using a public API, then store the location instead of the postcode).
If the processing returns a zero for the latitude, then there is something wrong - probably an incorrect postcode, or a very new one which has not been added to the postcoding API yet.
If this happens, how can I raise an error which will be handled by the usual
section of the standard Couch form-processing code?
If the processing returns a zero for the latitude, then there is something wrong - probably an incorrect postcode, or a very new one which has not been added to the postcoding API yet.
If this happens, how can I raise an error which will be handled by the usual
- Code: Select all
<cms:each k_error >
<br><cms:show item />
</cms:each>
section of the standard Couch form-processing code?