Expand my Community achievements bar.

SOLVED

When do you need to add logic to save content from dialog boxes?

Avatar

Level 4

Hi all,

I'm having trouble understanding when you need add clientlib js file to save content from the dialog box? When is this necessary? Is it the same for TouchUI (Granite/Coral) and ClassicUI (extJS)

1 Accepted Solution

Avatar

Correct answer by
Employee

Normally you don't have to write logic/code to store values from dialog.

View solution in original post

5 Replies

Avatar

Correct answer by
Employee

Normally you don't have to write logic/code to store values from dialog.

Avatar

Level 10

Dialogs are form for which there is not need write any code to submit values. Its takes care of it automatically

Avatar

Administrator

Ad mentioned by Praveen, the Dialog are nothing but forms, so then when you click the the OK button, the action or submission is performed.

Please have a look at this reference article to fetch the value from dialog :- http://aem.matelli.org/fetching-properties-from-dialogs/

~kautuk



Kautuk Sahni

Avatar

Level 10

The only use case I can think of when its necessary to write code is an advanced Multi-field dialog. 

See: 

http://scottsdigitalcommunity.blogspot.ca/2016/09/creating-aem-62-html-template-language.html

We have an article and video that shows this. 

Avatar

Level 4

Thank you everyone. It really cleared it up for me.