Mobile app: Immediate validation feedback on record save

Hi,

We have added a save validation to a specific object using an event listener. When using Creatio via a web browser, it works flawlessly. Users cannot save a record if it contains errors; they receive immediate feedback and can correct the invalid information right away.

Unfortunately, it behaves differently in the mobile app. A record with errors gets "saved" locally on the mobile device, and the validation feedback only appears during synchronization with the server (since the validation runs exclusively on the server side). While this behavior is understandable, our app is configured for online synchronization, which is actually the only approach that makes sense for this particular module. We need the user to see the feedback immediately, without having to manually check the synchronization log. Is there a way to achieve this?

Like 1

Like

3 comments

Hi Eryk,

If you're on Freedom UI, you can solve this by intercepting `crt.SaveRecordRequest` in your page's client schema handlers. This fires on the mobile app on the device before anything reaches the server, giving the user immediate feedback and blocking the save if validation fails.

Note that for Creatio Mobile, this has to be implemented through a remote module. You can't add the handler directly in the page schema the same way you would for the web client. Creatio Academy has documentation on implementing custom request handlers via remote module for Mobile Freedom UI pages.

Hello,
The information from the previous comment is correct, you need to override crt.SaveRecordRequest. The instructions on how to add handlers in the mobile can be found in this article
https://academy.creatio.com/docs/8.x/mobile/mobile-development/customiz…

Hello, thank you :) I'll check the solutions

Show all comments