Expand my Community achievements bar.

SOLVED

AEM 6.3 : Show custom alert in Page properties window

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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

Avatar

Level 8

Hi,

Thanks a ton.

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

Avatar

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