Multiple handlers on same control

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Alexey Babin
Posts: 23
Joined: Wed May 11, 2016
Contact:

30 May 2016

What happens if I bind two event handlers to the same event for the same element?

For example:

fd.field('FieldName').click(.../*Busines logic code*/...);

fd.field('FieldName').click(.../*a.e. validation*/...);

Does the last handler "win", or will both handlers be run?

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

31 May 2016

Event handlers will all be executed in the order they were added.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests