Skip to main content
Solved

Visual Expression to hide field if blank in ='Lot #: ' + [SOShipLine.LotSerialNbr]


mike2665
Jr Varsity III
Forum|alt.badge.img

On our Shipment Confirmation form we provide our lot numbers on stock items but on a service or non-stock item I want to hide the Lot # field to not show that doesn’t have a lot code. See below. I tried using =IIF(StkItem = FALSE, FALSE,TRUE) in the text box visual expression behavior but it does not work. Can someone let me know if I need to add something to the schema to make this work?

 

Best answer by mike2665

Thank you Yulias18, that helped me to find my problem. I did not have the InventoryID table in my schema. When I added it I then added the visual expression of  =IIF([InventoryItem.StkItem]=FALSE,FALSE,TRUE) that hid my field for Lot #’s of non-stock items while allowing my stock items with lot codes to populate.

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+1

You can try using 

[InventoryItem.StkItem]=TRUE 

in visibilityExpr


mike2665
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 19 replies
  • Answer
  • January 26, 2024

Thank you Yulias18, that helped me to find my problem. I did not have the InventoryID table in my schema. When I added it I then added the visual expression of  =IIF([InventoryItem.StkItem]=FALSE,FALSE,TRUE) that hid my field for Lot #’s of non-stock items while allowing my stock items with lot codes to populate.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings