Share via


HiddenFields Property [Publisher 2003 VBA Language Reference]

Returns a WebHiddenFields object that represents hidden Web fields attached to a Submit command button.

expression.HiddenFields

expression Required. An expression that returns one of the objects in the Applies To list.

Example

This example adds a new hidden Web field to a new Submit command button.

Sub CreateActionWebButton()
    With ActiveDocument.Pages(1).Shapes
        With .AddWebControl _
                (Type:=pbWebControlCommandButton, Left:=150, _
                Top:=150, Width:=75, Height:=36).WebCommandButton
            .ButtonText = "Submit"
            .ButtonType = pbCommandButtonSubmit
        End With
        .Item(1).WebCommandButton.HiddenFields.Add _
            Name:="User", Value:="PowerUser"
    End With
End Sub

Applies to | WebCommandButton Object