Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Listeners to compare two textfields in a multifield dialog - Classic UI


Level 2

For a normal dialog, I am able to compare the values by adding listeners node in the dialog and adding the property "beforeSubmit" with value


var minAmount = dialogObj.getField("./minAmount").getRawValue();

var maxAmount=dialogObj.getField("./maxAmount").getRawValue();

  if (minAmount>maxAmount) {


alert("Pleae enter maxAmount amount larger than minAmount");



Structure of the normal dialog:


Incase if I have two textfield widgets in a multifield dialog and I want to compare the values entered in these textfields beforeSubmit of the dialog.

Help me ,where the listener has to be added in multifield dialog and how to access the multifield textfields

Structure of my multifield dialog:


0 Replies