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!
Solved! Go to Solution.
Views
Replies
Total Likes
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();
Views
Replies
Total Likes
Can you tell when or in which event you are trying to get the value for the field?
Views
Replies
Total Likes
I am trying to get this value in dialog.success = function(form) {..} , under CQ.wcm.SiteAdmin.movePage
Views
Replies
Total Likes
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();
Views
Replies
Total Likes
Its working now, Thanks a lot!!
Views
Replies
Total Likes
Views
Likes
Replies