Try our conversational search powered by Generative AI!

Can you cancel a form submission in a custom actor without an error message?


I'm trying to cancel a form submission in a custom actor based off this example:

I've removed the message, but I still get the Failed to submit error. I can do some front end stuff to make it look like it worked, but was hoping there was another way from the backend. Is this possible?

Jun 15, 2023 18:54


Not sure that would be a good UX approach. Generally when something fails you want to inform the user that it happened and what they need to do to resolve it.

Why would you need to remove the message?

Have you tired just having: result.ErrorMessage = "";


Edited, Jun 16, 2023 7:51
eperezjr - Jun 19, 2023 1:27
I did try setting it to empty. But the default message appears regardless. I'm testing a honeypot field. On the off chance they read the web page messages, I don't want them to see it failed. The user will never come across this.


I had a play with the gist you sent and that code is working as expected:

As you can see there are 2 areas the message is returned.

1 is your piece and I believe the second to be in the 'DataSubmissionService' this is an internal implementation, however you could recreate it just to see what is going on and then based on that information come up with an alternative / amended solution.

I would add if this is a bot they would only get this message a normal user would not see this message and it might be fine to live with the way it is.


Edited, Jun 19, 2023 9:47
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.