0

There is currently a form, suppose there are two labels, I want to have a field with a value for the label ex2 to appear, if not, hide the label ex2.

Is there a place to set it?

enter image description here


After I tried, the tab still visible...

In the Designer :

enter image description here

In the Client :

enter image description here

Ariel
  • 57
  • 6

1 Answers1

2

To hide a TAB you simply hide its contents. If you e.g. would want to hide ex2 you would select the complete content of the tab", open the text properties (Alt + Enter) and enter something like:

HideEx2 = "Yes" 

in the hide- when formula. Then the tab will disappear as soon as the field "HideEx2" gets the value "Yes".
Take care: Hide whens are NOT calculated "automatically". If your Hide- When depends on the value of an option or checkbox field you need to check the mark "Refresh fields on keyword change" in the field properties of the HideEx2- field.
Otherwise your user needs to press F5 or save the document to make the tab appear / disappear

enter image description here

If there are Tables in the tab, then you need to do three steps:

  1. select everything before the table (red BEFORE in the screenshot), set the hide- when
  2. select all cells of the table, set the hide when
  3. and at last select the text after the table (red AFTER in the screenshot) and hide it.

3 different selections, 3 times setting the checkmark, 3 times inserting the hide when! You CAN'T do it in one step, it's not possible to select a table AND its surronding and set the hide when for everything at once. You can select it, but hide when will only be set for some of the stuff.

If there is one single line that is not hidden in the tab, then it will be visible.

Tode
  • 11,795
  • 18
  • 34
  • I edited my question after I used your advice, but the tab still visible. – Ariel Sep 11 '20 at 08:15
  • 1
    See my edit: Write Some text BEFORE the inner table like "BEFORE", make it red. Then write some text after the table like "AFTER" and also make it red. Now open your form: If your hide-whens are correct, then the tab is hidden. If it shows "BEFORE" in red, then you know you need to fix the hide when of that text, it it shows "AFTER", then you need to fix that. In case of Table in Table you need to set the hide when in 3 different places as described in my post. – Tode Sep 11 '20 at 09:33
  • @Ariel Please accept the answer as the correct answer: https://stackoverflow.com/help/someone-answers – Per Henrik Lausten Oct 02 '20 at 08:45