Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8433 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

Instead of ERR#504 when adding a record to the database, I would like to give the user a meaningfull explanation on what went wrong.

Any idea how to do this?

Thanks,

Posted

Sure. Put a CDML [iF] statement on the error html page that contains the appropriate message. Error 504 is "value in field does not meet unique validation entry options" so if possible make the error specific to the fields that may be causing the problem... "That e-mail address is already entered into the database, please use a different address."

Posted

Thanks Vaughan,

is it possible to have more than 1 If statement on the errorpage?

explaining all the most common errornumbers?

How does the hml code look like?

Thanks

Posted

You should nest the IFs on the error page: note the location of the "generic" error response right at the bottom...

If error=401

response for 401

else

If error=501

response for 501

else

If error=402

response for 402

else

If error=406

response for 406

else

generic response

End IF

End IF

End IF

End IF

This topic is 8433 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.