Skip to main content
Level 3
Apr 1, 2016 7:25 AM UTC
Solved

AEM 6.1 | Classic UI Move dialog

Hi Guys,

I am trying to get the new name entered from the move dialog in SiteAdmin.Action.js which is overridden in apps( from /libs/cq/ui/widgets/source/widgets/wcm/SiteAdmin.Actions.js). I tried using , 

form.findField("destName").getValue(); to get the name. This works fine in 5.6.1 but its not fetching the name in 6.1. 

Can someone please suggest me ways to get the new name entered by author while moving the page? I need this to process something further based on a business logic. Alternatively, i tried to get the entire path using  form.findField("destPath").getValue(); but even this is giving me empty String. 

Thanks in Advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
edubey
edubeyAccepted solution
Level 10
Apr 1, 2016 8:57 AM UTC

I took a quick look with objects on console in AEM 6.1

It shows name of field as  0_destName

So this should work

var c = form.findField("0_destName").getValue();

4 replies

edubey
Level 10
Apr 1, 2016 8:19 AM UTC

Can you tell when or in which event you are trying to get the value for the field?

Translate
Level 3
Apr 1, 2016 8:41 AM UTC

I am trying to get this value in dialog.success = function(form) {..} , under CQ.wcm.SiteAdmin.movePage

Translate
edubey
edubeyAccepted solution
Level 10
Apr 1, 2016 8:57 AM UTC

I took a quick look with objects on console in AEM 6.1

It shows name of field as  0_destName

So this should work

var c = form.findField("0_destName").getValue();

Translate
Level 3
Apr 1, 2016 9:02 AM UTC

Its working now, Thanks a lot!!

Translate