How to display fields based on other field values

Hi,

Here i’m new to development here i want to hide the fields based on other field value, here i have field called temp of type dialoglist having temporary and permananent values, if select temporary i want to show the two fields startdate and enddate , how to manage this please help me in this regard

Subject: how to display fields based on other field values

Ok on the fields startdate & enddate go to the field properties and select the 6th tab the one that kind of looks like a hook. At the bottom there is a big box check the little box above that says Hide paragraph if true. Put this forumla in each one of the fields:

temp = “” | temp != “temporary”

what this is saying if the field temp equals “”(Nothing) then hide this field…OR {|} if the field temp is NOT equal to the string “temporary” then hide this field. Remember hide forumals cover the entire row of a form so anyother fields listed on the same row either text or field will be hidden if the formula is true. It will hide the contents of just its cell in the same row if located in a table. So seperate fields in seperate cells of a table on the same row will not be hidden based on one another because they cell seperates the rows.

also make sure the date fields are located BELOW the temp field because notes loads top to bottom left to right…if they are above the temp field your trying to show something based on a calculation that has not been done yet because of the load order. HTH

Subject: how to display fields based on other field values

There is a hide when formula in lotus notes, anything on the same row will use this same hide when. You can get this on ‘text properties or field properties’

Have the formula at the bottom say:

Hide paragraph if formula is true:

temp<>“temporary”

So those two dates would only show up when it temporary is not blank.

Subject: how to display fields based on other field values

Hello,

You will need to use the hidewhen formulas for your fields and base your formula on the value in the dialog list. Make sure your dialog list field is above your hidden fields on your form and make sure on the second tab of the dialog list properties box you select “Refresh fields on keyword change”

Your hidewhen formula for the startdate and enddate fields in your example should look like this:

dialogfieldname!=“temporary”

Remember that hidewhen formulas are line based so anything on the same line in your form will share the same hidewhen formula. Either break the fields up on separate lines (paragraphs) or put the fields in separate table cells.

HTH!

Mark

dialogfld="