AEM 6.1 | Classic UI Move dialog | Community
Skip to main content
New Participant
April 1, 2016
Solved

AEM 6.1 | Classic UI Move dialog

  • April 1, 2016
  • 4 replies
  • 1103 views

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.
Best answer by edubey

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

New Participant
April 1, 2016

Its working now, Thanks a lot!!

edubey
edubeyAccepted solution
New Participant
April 1, 2016

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();

New Participant
April 1, 2016

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

edubey
New Participant
April 1, 2016

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