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.
Represents hidden web fields that allow a webpage to pass non-visible data to the web server when a webpage is submitted. The WebHiddenFields object enables control of all the hidden fields attached to a Submit command button.
Remarks
Use the HiddenFields property of the WebCommandButton object to access hidden web fields.
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
.HiddenFields.Add Name:="User", Value:="PowerUser"
End With
End With
End Sub
Methods
Properties
See also
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.