Expand my Community achievements bar.

Read multifield(say multifield of pathbrowsers) dialog values via js in AEM 6.3

Avatar

Level 8

Hi,

I need to read the values of a dialog which has a multifield of pathbrowsers via my js[being used to display custom validation messages] in AEM 6.3 and populate them into an array for checking if values are present or not in each of the fields.

Tried the options mentioned in the below articles,

http://sgaem.blogspot.in/2017/02/granite-ui-jquery-validations-in-aem-62.html

http://www.adobeaemclub.com/aem-touch-ui-dialog-validation/

which has something like $form.find, but no luck.

Any thoughts/pointers/code snippet on this will be helpful.

7 Replies

Avatar

Level 8

Hi All,

Any thoughts on this will be helpful.

Avatar

Level 10

Here is another article that shows using Sling Models - a recommended way - to read MF:

Scott's Digital Community: Creating a HTL Repeating Data Set 6.3 Component that uses Sling Models

Hope this helps...

Avatar

Level 8

Hi,

Thank you for your reply. But guess this doesn't help the thing I am trying out with. Will check on this though.

@others : In case of any other thoughts , please do provide some inputs on this.

Avatar

Level 10

I have never seen reading a MF using JavaScript - its typically Java and HTL.

Avatar

Level 10

Hi,

As Scott stated, usually reading MF is done with JAVA and HTL.

As far I know, that is the good approach.

Thanks,

Ratna.

Avatar

Administrator

What exactly are you trying to achieve?

See this artile for you help:- AEM Touch UI Dialog Validation New Best Practice: Use Foundation-Validation | Adobe



Kautuk Sahni