Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide Paragraph if checkbox checked.

Status
Not open for further replies.

actekk

Programmer
Oct 20, 2002
1
US
I don't know much about lotus notes but would like to find out if it possible to hide a paragraph if the list type checkbox can be used to show/hide paragraphs?

What I have is text in table cells, and I set the text properties to have list as checkbox. I understand that this is not the 'real' checkbox, but rather just a way to list items (like, 1.2.3. or a.b.c. or i.ii.iii.iv, etc).

Is it possible to have a formula for hide paragraph if this little check box is checked ?

Thanks in advance.
 
Yes it is, you can find it in the Text Properties (its the next-to-last tab on the right when you right-click the mouse and ask for Text Properties).
Since you are new to Notes, I'll give you a run-down.
You say you have a field with checkbox values. If the user checks something, then the field gets that as value (since it is checkbox, it can be multi-value).
You need to do two things :

- set the text you want to have hidden following a Hide/When rule, and
- set the field to refresh the document on content change (you'll need the Notes Designer client for that)

How to do this ? Simple.
First, highlight the text in the cell you want to hide. Right-click the mouse to get the Text Properties dialog box, and click the Hide/When tab (next-to-last one to the right). There, you need to check the option "Hide paragraph if formula is true". You also need to put in a formula. I suggest using the name of the field, and comparing it to one or more values to check.
Like this :

FieldName = "value1"

or

FieldName != ""

if you want to hide whatever value is checked in the field (the != is a NOT EQUAL).

Now that you have your formula in the right place, you just need to go back to the field, double-click it to open the Field Properties dialog box, and open the second tab from the left. There, you have an option named "Refresh fields on keyword change". Check that and you're done.

The text properties setting does not require a Designer client, nor Designer access. It does, however, require that you know the design name of the field you want to tie it to.

Good luck !

Pascal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top