Expand my Community achievements bar.

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

Avatar

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

function(dialogObj){   

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:

1434954_pastedImage_12.png1434955_pastedImage_13.png

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:

1434953_pastedImage_11.png

0 Replies