Difference between revisions of "Template:Conflicting Layout Rules and Show Empty Fields Settings"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
 
Line 1: Line 1:
{{Note|<br>A field can either be:
{{Note|<br>A field can be referenced in either:
:a. In a section for which '''Show Empty Fields in View''' has been disabled<br>&nbsp; &nbsp; (using [[Section#Advanced Options in Sections|Advanced Options]] in a Section), or  
:a. A section for which '''Show Empty Fields in View''' has been disabled<br>&nbsp; &nbsp; (using [[Section#Advanced Options in Sections|Advanced Options]] in a Section), or  
:b. Used in a [[Layout Rules|Layout Rule]] condition
:b. A [[Layout Rules|Layout Rule]] condition.
But it ''cannot'' be used in both places.  
But it ''cannot'' be referenced in both places.  


'''The Reason:'''
'''The Reason:'''
If the field is empty, the server removes it from the page. The Layout Rule, meanwhile, is a JavaScript function in the page. When the Layout Rule tries to test that field, an error occurs.}}
If the field is empty, the server removes it from the page. The Layout Rule, meanwhile, is a JavaScript function in the page. When the Layout Rule tries to test that field, an error occurs.}}

Latest revision as of 01:00, 21 July 2011

Notepad.png

Note:
A field can be referenced in either:

a. A section for which Show Empty Fields in View has been disabled
    (using Advanced Options in a Section), or
b. A Layout Rule condition.

But it cannot be referenced in both places.

The Reason: If the field is empty, the server removes it from the page. The Layout Rule, meanwhile, is a JavaScript function in the page. When the Layout Rule tries to test that field, an error occurs.