AEM 6.3 : Show custom alert in Page properties window

cquser1

13-12-2017

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

Accepted Solutions (1)

Accepted Solutions (1)

Techaspect_Solu

14-12-2017

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

Answers (1)

Answers (1)

cquser1

14-12-2017

Hi,

Thanks a ton.

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