Required Fields

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
 
S

Sue Mosher [MVP-Outlook]

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.
 
J

Jerry Camel

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top