Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8885

Check "CurrentDocument" properties on Form tab

$
0
0
Not sure why this isn't working this time because it did prior but I want to set visibility of some fields on the Form tab of a document. `{% if(CurrentDocument.NodeLevel == 2 && CurrentDocument.NodeAliasPath.Contains("/My-Page")){return true;}else{return false;} @%}` This should be returning true and display the field when I'm on this page `/My-Page/Tester` but it doesn't seem to. Assume this is only happening after a page has been created, so I'm performing an edit/update to it.

Viewing all articles
Browse latest Browse all 8885

Trending Articles