Required Fields

  • Thread starter Thread starter Jerry Camel
  • Start date Start date
J

Jerry Camel

Is there a way to programatically turn on the required flag for a particular
field. I've got a form where there is a field that is hidden unless a
condition is met. f the condition is met, then the field is required.
Problem is, if the condition is not met and the user tries to send the form
it complains that there is a filed that requires a value. So I only want to
require thevalue if the field is visible. Any insight is appreciated

Also, I'm dynamically generating the message text for the read form based on
values entered when the message is sent. When the user tries to close the
message after reading it, they are prompted to save changes because the body
field has actually changed. How can I avoid this?

Jerry
 
There's no flag like that but you could invoke validation differently --
using code in the Item_Send event handler rather than the control's
Properties dialog.

To avoid the Save Changes? prompt, save the item after you generate the body
text.
 
Thanks, Sue. Taken care of on both fronts.


Sue Mosher said:
There's no flag like that but you could invoke validation differently --
using code in the Item_Send event handler rather than the control's
Properties dialog.

To avoid the Save Changes? prompt, save the item after you generate the body
text.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top