Skip to Main Content
Essential SharePoint 2007, 2nd Edition
book

Essential SharePoint 2007, 2nd Edition

by Jeff Webb
September 2007
Beginner content levelBeginner
448 pages
10h 2m
English
O'Reilly Media, Inc.
Content preview from Essential SharePoint 2007, 2nd Edition

Making a Form Read-Only

The preceding section showed you how to disable the submit button after it is clicked once. That prevents the same form from being submitted multiple times. The same technique can be used to make all or part of a form read-only after it is first submitted.

For example, to prevent further changes to the Request Number field after the form is submitted:

  1. Double-click on the Request Number field at the top of the form template. InfoPath displays the Text Box Properties dialog box.

  2. Click Display → Conditional Formatting → Add. InfoPath displays the Conditional Format dialog box.

  3. Complete the dialog box, as shown in Figure 10-12, to make the field read-only when DisableSubmit is selected.

  4. Click OK three times to close the dialog boxes.

  5. Preview the form to test the change.

Making a field read-only after the form is submitted

Figure 10-12. Making a field read-only after the form is submitted

You can't apply conditional formatting to more than one control at a time, so if you need to make an entire form read-only, you'll need to repeat this procedure for each control.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Office SharePoint® Server 2007 Best Practices

Microsoft® Office SharePoint® Server 2007 Best Practices

Ben Curry, Bill English
SharePoint 2007: The Definitive Guide

SharePoint 2007: The Definitive Guide

James Pyles, Christopher M. Buechler, Bob Fox, Murray Gordon, Michael Lotter, Jason Medero, Nilesh Mehta, Joris Poelmans, Christopher Pragash, Piotr Prussak, Christopher J. Regan

Publisher Resources

ISBN: 9780596514075Errata Page