Question : Beginner: Evaluate expression if field is visible:

LotusDomino 5

I have a field: "OffSiteDataFormat"   --> method "Input Validation

I have the following:
@If(@IsDocBeingSaved;@If(OffSiteDataFormat != "";@Success;@Failure("Please select a Data Format"));@Success)

I only want this evaluate if the field "OffSiteDataFormat" is visible on the form at the time of saving the document ?

Is this possible ?

Thanks
fordraiders

Answer : Beginner: Evaluate expression if field is visible:

Yes, it is possible.

You just need to add the field's hide formula to the validation formula.

To make things a bit easier to read, I'm going to re-write your formula differently...

@If(
!@IsDocBeingSaved; @Success;
YOUR_HIDE_FORMULA_HERE; @Success;
OffSiteDataFormat != "";@Success;
@Failure("An agreement type is required."))
Random Solutions  
 
programming4us programming4us