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

WebHiddenFields.Name Method (Publisher)

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

Returns a String that represents the name of a hidden Web field for a Web command button.

Syntax

expression. Name( Index)

_expression_A variable that represents a WebHiddenFields object.

Parameters

NameRequired/OptionalData TypeDescription
IndexRequiredLongThe index number of the hidden field.

Return Value

String

Example

This example creates a Web command button with a hidden field, then displays the field's name.

Sub GetHiddenWebFieldName() 
 With ActiveDocument.Pages(1).Shapes.AddWebControl _ 
 (Type:=pbWebControlCommandButton, _ 
 Left:=100, Top:=100, Width:=100, _ 
 Height:=36).WebCommandButton.HiddenFields 
 .Add Name:="User", Value:="Power" 
 MsgBox "The name of the first hidden field is " &; .Name(1) 
 End With 
End Sub
© 2018 Microsoft