Expand my Community achievements bar.

SOLVED

Limit Multifield Value from design_dialog in AEM 6.5

Avatar

Level 1

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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



Arun Patidar