Overriding the Default Page Field Styles

You can override the default style of most page field controls, such as edit boxes, drop-down list boxes, and so on. Many page field controls include a separate label style that enables you to override the label style independent of the control style itself.

Note these points about changing the default style of a page field:

  • The Style drop-down list box displays only the style classes that comprise the current page style sheet, whether default or override. Style classes that do not appear in the current page style sheet do not appear in the list.

  • If the page style sheet comprises only free form sub style sheets, then the system constrains all page field controls to the default style despite the Style field value.

To override the default page field style:

  1. Open a page in PeopleSoft Application Designer.

  2. Double-click the page field control to access the Properties dialog box.

  3. Select the Record tab.

  4. Click the Style drop-down list box and select a new style.

  5. Click the Label tab.

  6. Click the Style drop-down list box and select a new style.

  7. Select Layout, and then View in Browser to preview the page.

    Unlike the page designer view, this option renders the page with all style classes, including free form styles.

  8. Save the page.

In addition to setting the style property at design time, you can also use the PeopleCode Field object Style property to programmatically change the style class of a field at runtime.

See PeopleCode Developer’s Guide: Using the Field Object Style Property.