Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns a WebHiddenFields object that represents hidden web fields attached to a Submit command button.
Syntax
expression.HiddenFields
expression A variable that represents a WebCommandButton object.
Return value
WebHiddenFields
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.