I have a hide/when formula for a button. It hides when it is suppose to, however it hides the entire line and not just the button. Yes the formula is under button properties and not text properties. This happens when I try and hide fields as well. Any ideas?
Subject: Thats because a Hide When formula applies to an entire paragraph, not just an individual item.
The only way to hide a button and display a line next to it is to use a Table.
Subject: RE: Thats because a Hide When formula applies to an entire paragraph, not just an individual item.
A table does have hide/when properties. There are certain ways to display a certain row at a time; however, how would I set the table to display display a row through a formula and not let the user pick which row he/she wants to choose?
Subject: I know a table has hide when properties…
I was just pointing out that you can hide a cell on 1 row of a table and display a cell on the same row next to it. As to
" There are certain ways to display a certain row at a time; however, how would I set the table to display display a row through a formula and not let the user pick which row he/she wants to choose?"
I have no idea what you are asking.
Subject: RE: I know a table has hide when properties…
Modify table properties to show only a single row based on a formula. Sounds like you also want to Not show the tabs.
Name your table and rows. Create a computed field call $table-name. Have the field use an @If statement to return the name of the table row you want displayed.
HOWEVER - this is not what the previous person was suggesting. Hide-when applies to the entire paragraph. Each table cell is considered a separate paragraph for hide-when purposes. This means you can hide one cell and display the cell immediately next to it (what might appear to be the same paragraph). Nothing special is needed for this - simply place the button you desire to hide in one cell and the text you desire displayed in a different cell.
Hope this helps,
Marc Robson
Subject: RE: I know a table has hide when properties…
What you’ve said clears everything up. Thanks
Subject: Hide-when formulas affect the entire paragraph
Even though individual elements, such as buttons and fields, have a hide-when tab, the settings affect the entire paragraph.
For example, you can’t do a hide-when on selected text – the entire paragraph is affected.
This is also true for some of the other property tabs as well. It’s just one of those little things to keep in mind as you develop.
Subject: Hidden button hiding entire line
Buttons don’t have hide-when properties. They inherit the hide-when status of the paragraph they are in.
Yes, it is confusing that for “convenience” they allow you to change it when the property box states “Button”, but that box also contains non-button properties.
(Off the top of my head, I think Hide-When’s always apply to paragraphs.)