Create Custom HTML Layout for Password Change

Create Custom HTML Layout for Password Change

Overview of Password Configuration settings

To customize the layout of the Web Part, select Custom Layout, and then click the Modify Layout button.

HW06_HTMLEditor_2013.jpgIn the HTML Editor window, you can customize the HTML used to define the layout of the Web Part. Note: The HTML provided in the HTML Editor window is a sample only and must be replaced by your custom HTML.

The following options on the right side of the window are available to help you construct the HTML code:

No. Column Description
1. Field Control

Contains a list of the text fields that are displayed on the Web Part. Select a field to insert into your custom HTML and provide a CSS class name that can be used later to define the style for the field (optional). Place the cursor in the HTML Editor where you want to insert the field and click the Insert button. The following text will be inserted:

[@Field:InternalFieldName CSSClass=”ClassName”]

  • @Field defines the type of control (i.e., text box, radio button, selection list) added to the page. In the case of the Password Change Web Part, the field will always be a text box.
  • InternalFieldName is the internal name of the text field. The internal name of a text field is defined by the Web Part and cannot be changed.
  • CSSClass is an optional parameter that allows you to define a unique CSS style to the Field Control.
  • ClassName is the name of the class that was defined in the CSS Class Name field.
2. Field Label

Lists the text fields defined by the Web Part. This allows you to create a custom name for each text field that differs from the InternalFieldName. Select a field, define a CSS class name (optional), and click Insert to add the label of the text field into the HTML Editor. The following text will be inserted:
Note: The Field Label will not change the InternalFieldName of the Web Part elements, only the label that appears in the Web Part. When editing custom HTML, the original field names must still be used.

[@DisplayName:InternalFieldName CSSClass=”ClassName”]

  • @DisplayName defines the type of control added to the page. Field labels are typically text.
  • InternalFieldName (See Above)
  • CSSClass (See Above)
  • ClassName (See Above)
3. Action Buttons

Use this drop-down list to modify the Change Password button or the Clear button. Select which button to modify and enter a CSS class name (optional). Put the cursor in the HTML Editor where you want the button to be displayed and click Insert. The following text will be inserted:

[@Control:BtnControlName CssClass=”ClassName”]

  • @Control defines which button you will be modifying.
  • ControlName is the internal name of the button. The internal name of the button is defined by the Web Part and cannot be changed.
  • CssClass is an optional parameter that allows you to define a unique CSS style for the button.
  • ClassName is the name of the class that was defined in the CSS Class Name field.

When you are finished constructing your custom HTML, click the Save button in the HTML Editor to save the new layout and return to the Look and Feel Settings page. Click Save & Close in the Web Part Settings window and then click Apply and then OK in the Web Part tool pane to view the new layout.

See also: