Limit Multifield Value from design_dialog in AEM 6.5

Avatar

Avatar

freedeebee

Avatar

freedeebee

freedeebee

20-08-2019

Hi everyone,

i want to limit the amount of items an author can set in a component with multifield values to a specific number specified by the template editor in design_dialog. I did not find a AEM native solution for this, so I tried with jQuery. But I don't know how I can access the number specified in design_dialog in jQuery. So is there a clean solution for this, or how can I access the data?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

20-08-2019

I don't think so its very straight forward.

You need to read the limit value from design_dialog using ajax call and use when you verify against number of edited fields in jquery

Answers (0)