I'm trying to make a rule that will change field properties (required, read only) and can't figure out how the correct usage. Any pointers?
it will eventually be part of if statements but for now...
I get ActiveX automation object var is Nothing
Sub mainDim depth As Fielddepth.Required = TrueEnd Sub
Hi Brett,
Please see the gINT Rules Manual, as well as the gINT Rules Samples. I'd also recommend checking out the videos under the GRA005 sample for an overview of gINT Rules.
Off the top of my head, I don't think you can set field properties like you are trying to do above. If you want certain fields to be conditionally required, etc. you would typically write some validation code to see if the field is empty (such as in an On Save event Rule) and then raise an error/warning. There will be examples in the Manual/Samples.