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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM 6.3 : Show custom alert in Page properties window

cquser1
Level 8
Level 8

Hi All,

Details as below :

We have added a custom tab in the page properpties for one of our custom templates. One of the field in the custom tab is a non-mandatory multifield pathbrowser.

In case that multi-field in dialog is not filled up, we would like to show an alert that this needs to be filled in later and continue to save the page properties without filling in that field.

Tried various things based on the posts mentioned below, but no luck. Any thoughts/pointers on this will be really helpful.

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

https://forums.adobe.com/thread/2422733

https://forums.adobe.com/thread/2325432

https://www.aemquickstart.in/2016/11/input-field-validation.html

http://adobeaem-learneasycodeeasy.blogspot.in/2017/01/aem-touch-ui-dialog-validation.html

https://forums.adobe.com/thread/2326456

1 Accepted Solution
Techaspect_Solu
Correct answer by
Level 7
Level 7

Hi,

Please refer the link below. It'll you to acheive your use case.

http://experience-aem.blogspot.in/2015/03/aem-6-sp2-extend-site-admin-properties-show-submit-confirm...

NOTE: Once you download the package from above link, you'll need to made few changes in the js (missing-page-title.js) in order to make it work in AEM 6.3.

Changes to be done:

1) Replace line 5 with:  var PROPERTIES_FORM = "cq-sites-properties-form";

2) Replace line 18 with: var title = $propertiesForm.find("[name='./<your-custom-name-here>']").val(),

And replace message as per your requirement.

We hope this helps!

Regards,

TechAspect Solutions

View solution in original post

3 Replies
Techaspect_Solu
Correct answer by
Level 7
Level 7

Hi,

Please refer the link below. It'll you to acheive your use case.

http://experience-aem.blogspot.in/2015/03/aem-6-sp2-extend-site-admin-properties-show-submit-confirm...

NOTE: Once you download the package from above link, you'll need to made few changes in the js (missing-page-title.js) in order to make it work in AEM 6.3.

Changes to be done:

1) Replace line 5 with:  var PROPERTIES_FORM = "cq-sites-properties-form";

2) Replace line 18 with: var title = $propertiesForm.find("[name='./<your-custom-name-here>']").val(),

And replace message as per your requirement.

We hope this helps!

Regards,

TechAspect Solutions

View solution in original post

cquser1
Level 8
Level 8

Hi,

Thanks a ton.

The inputs provided was really helpful. Am still on it, but the pointers were very much helpful.

divyas13442353
Level 1
Level 1

Hi,
were you able to achieve the above functionality?
Can you please let me know , how can we do the validation of multifield in page properties