Expand my Community achievements bar.

SOLVED

AEM 6.1 | Classic UI Move dialog

Avatar

Level 4

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!

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

4 Replies

Avatar

Level 10

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

Avatar

Level 4

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

Avatar

Correct answer by
Level 10

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