Setting the length of input text fields (deprecated)
Overriding CSS styles in a heritage coach control also enables you to set the maximum
length (in pixels) for an Input Text control.
About this task
Setting the maximum length for an Input Text control does not restrict the number of characters that a user can type into the text box.
Procedure
- Open the service that contains the heritage coach that you want to work with and then click the Coaches tab.
- In the design area, click to select the heritage coach control that you want to customize.
- Click the Customization option in the properties.
- Click the Add Class button.
- Under Class Details, type a name in the Class Name text
box. By default, this field includes the name,
class. You need to replace this text with the class name that you want. -
To override the CSS styles for the heritage coach control, click the Create control
override button.
This creates a
CSS class.. class_name .twControl { } -
In the design area, click the top-level section of the heritage coach (named
IBM BPM Coachby default) and then click the CSS option in the properties. - In the CSS text box, type the CSS override settings to
specify the maximum input length (in pixels) for the control's input
text box. For example, the following CSS override sets the length to 110 pixels:
. class_name .twControl { width:110px; } - Save the heritage coach and then run the service to test the CSS overrides.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15