Reg- Multifield Listener

Avatar

Avatar

prabhukarruppus

Avatar

prabhukarruppus

prabhukarruppus

17-01-2018

[Moderator moved from Adobe Portfolio to Adobe Experience Manager ​]

Hi All,

I need to write a listener for the following scenario:

Amount section is a multifield, Which contains Minimum Amount and Maximum Amount as a text field.

(Through listener we need to show a popup on submit if the maximum amount entered is less than minimum amount)

The screen shot for the dialog is as follows :

Screen Shot 2018-01-17 at 7.16.14 PM.png

For the above multifield scenerio I can't able to achieve the expected output.

The properties of AMOUNT, Minimum Amount And Maximum Amount Respectively

Screen Shot 2018-01-17 at 7.16.31 PM.png

Screen Shot 2018-01-17 at 7.16.46 PM.png

Screen Shot 2018-01-17 at 7.17.01 PM.png

Kindly guide me on to resolve this issue.

Thanks in advance.

Replies

Avatar

Avatar

Nancy_OShea

Avatar

Nancy_OShea

Nancy_OShea

18-01-2018

This is the Adobe Portfolio forum.  Which Adobe product are you using?   I can move this question to the correct forum for you.

Nancy

Avatar

Avatar

prabhukarruppus

Avatar

prabhukarruppus

prabhukarruppus

18-01-2018

Aem 6.2

Avatar

Avatar

vishalv66424037

Avatar

vishalv66424037

vishalv66424037

20-01-2018

You can use numberfield xtype instead of textfield and there is a property "maxValue" and "minValue" of type number which you can use for performing validation.

Avatar

Avatar

edubey

Avatar

edubey

edubey

20-01-2018

It's a duplicate question I guess https://forums.adobe.com/thread/2438798

Referring to your last answer, you have written listener code and have event triggered.

Where are you actually getting stuck?