Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Limit Multifield Value from design_dialog in AEM 6.5

Avatar

Avatar
Level 1
freedeebee
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
freedeebee
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
freedeebee
Level 1

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
Coach
MVP
Arun_Patidar
MVP

Likes

1,277 likes

Total Posts

3,153 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,277 likes

Total Posts

3,153 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
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)