Highlighted

send a dialog value to js - classic UI

Avatar

Avatar

sathya_prakasha

Avatar

sathya_prakasha

sathya_prakasha

07-03-2018

Hi,

I have a requirement to send a dialog value(i.e. dropdown) to java script and get back the response from ajax , update the value in dialog.. how to achieve it..

sample :

send country value -- IN -- > get the address from file and update the same into same dialog box again.(i.e textbox)

Regards,

sathya

Replies

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

07-03-2018

When you need to use Classic UI and read dialog values, you need to write a custom xtype. That is where yiu can add JS logic using values obtained from a classic UI component dialog.

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

07-03-2018

This older community artilce may help you learn how to work with dialog values with code.

Adobe Experience Manager Help | Dynamically updating Adobe Experience Manager custom xtype fields

Highlighted

Avatar

Avatar

navinkaushal

Avatar

navinkaushal

navinkaushal

08-03-2018

There are events you can trigger for the dialogbox in classic ui. See this Example: [Adobe Experience Manager Help | Validating Adobe Experience Manager Classic UI dialog values ]

Similarly you can write some custom JavaScript and attache AJaX call to it.

Hope this helps