Microsoft InfoPath 2010, Default values and Disable controls

I’d like to set the creation date field by default, whenever users create new help desk tickets. Besides that, the user must not change this value anymore. What I have to do is to disable this control,  when the default value is assigned. And that is not all! There is one more tricky thing. The default value must not chanege later, when the form is later opened again for updates.

To accomplish this we should take the following steps:

Assign the defult value by using functions “today()” (this functoin returns only date) or  “now()” (retruns date and time).

Uncheck the “Refresh value when formula is recalculated” in order to keep the value which was assigned at form creation.

Now, if you want to disable this control for editing, use the “Add rule” command and then formatting. I added condition to disable this control, when the value is not blank and that is immediately (when the default value is assigned).

This site was helpfull.

Enhanced by Zemanta

About Andrej Dobrovoljc

Andrej Dobrovoljc

Posted on 4. January, 2011, in SharePoint and tagged . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: