Table of contents
TOC
Collapse the table of content
Expand the table of content

WebCommandButton.HiddenFields Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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
© 2018 Microsoft