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

Manage and author Custom Error message for Modal component

Avatar

Avatar
Validate 1
Level 1
priya3
Level 1

Likes

2 likes

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
priya3
Level 1

Likes

2 likes

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
priya3
Level 1

03-03-2021

Hi,

 

We have a requirement to store UI validation Message and  Backend error message(displayed as modal)  in AEM so they are authorable. 

These error messages will be used across pages in site . Can someone suggest best way to manage it . Is it advisable to have a page dedicated for managing error messages where content authors can edit and manage error messages or create experience fragments for group of error messages to be referenced.

This is a React Application where the content is passed as Json to Front End.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,356 likes

Total Posts

3,227 posts

Correct Reply

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

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,356 likes

Total Posts

3,227 posts

Correct Reply

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

07-03-2021

The experience fragment approach looks fine, you can use some selector lets says /content/exper...../button-invlaid.content.html to remove unnecessary content,

You can try to create an error container component with another experience fragment button-erorr.modal.json which can refer above experience fragment as a group and messages can be grouped and reused.   

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

174 likes

Total Posts

183 posts

Correct Reply

55 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

174 likes

Total Posts

183 posts

Correct Reply

55 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile
KiranVedantam1992
Level 7

03-03-2021

Hi @priya3,

 

For setting the values globally or site-specific, you can use context-aware-configuration functionality in AEM. With this, you create a page with wcm.io Context-Aware Configuration Editor template, author your values and access them across the site.

Refer:

https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/context-...

 

Hope this helps.

 

Thanks,

Kiran Vedantam.