Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Model driven - Embed canvas app - Exit form validation

(0) ShareShare
ReportReport
Posted on by 75

Hello guys,

When talking about embed Canvas app inside Model-driven form, is there a way to validate the data upon exit the form ?

So it is something like this ->

pastedimage1629171858470v1.png

This is just an example, I'm using Appointment table, then create its canvas app and embed on its form.

In the Model-driven, at the list view then when we edit the record, we will see above picture, the form with its canvas app inside in one of its section. So my point is, when user click "back" arrow (to exit form), can Mode-driven validate first whether some field is correctly enter or not ?

Because I didn't see any Event-handler for exit. If not mistaken the event handler only OnLoad and OnSave ->

pastedimage1629172248221v2.png

What if user just click back, but my field in canvas app is not correct. That's why I need to validate first upon user exiting this form. 

I have Save button inside my canvas app, over there is the validation, but user can simply ignore this button and just hit the "Back" button on the top.

Hope I describe my issue clearly.

Any suggestion is appreciated.

Thanks

  • MedWong Profile Picture
    75 on at
    RE: Model driven - Embed canvas app - Exit form validation

    Also found this function -> PostSave

    docs.microsoft.com/.../postsave

    and this ->

    www.inogic.com/.../

    Thought it is somehow useful. But as mentioned, I don't know how to use this.

    Any can help me ?

    Thanks,

  • MedWong Profile Picture
    75 on at
    RE: Model driven - Embed canvas app - Exit form validation

    Hi,

    Interesting. Mind if I ask how the OnChange script looks like and how's the implementation ? I'm sorry because I'm actually no background of this CRM, come to here because of the synchronization with D365 F&O (named Dual-write) which is my background. So this JavaScript is totally new to me.

    Thanks.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Model driven - Embed canvas app - Exit form validation

    Hi,

    These events are currently supported:

    pastedimage1629180303732v1.png

    There is no event that can be triggered when hitting the "Back" button. You can add OnChange event to each field. Although it is not elegant, it is also a solution.

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Frank Gong

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 220 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 78 Super User 2025 Season 1

#3
Sahra Profile Picture

Sahra 43

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans