Trying to get Parent DocumentName for Default value in dropdown

James Ison asked on August 14, 2018 01:17

I have a pagetype with a dropdown of values that match the folders the items are inside of (for readability) I'm trying to set the default value of that field to always be the parent DocumentName but none of the macros are working. I tried in page and I am getting the proper value, but not with this macro {% CurrentDocument.Parent.DocumentName #%}

Folder and Dropdowns are named:
News Article
Press Release
Televison
Film
Radio

The default value never changes using this macro. The Dropdown does have dependent fields, and the parents are type CMS.Folder

Correct Answer

Peter Mogilnitski answered on August 14, 2018 03:10

Did you try {%EditedObject.Parent.DocumentName |(identity)GlobalAdministrator%}?

0 votesVote for this answer Unmark Correct answer

Recent Answers


James Ison answered on August 14, 2018 05:56

That did it THANK YOU!! I thought I was going crazy lol.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.