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

WebOptionButton.ReturnDataLabel Property (Publisher)

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

Returns or sets a String that represents the text used by the Web page to label the specified Web object when the page is submitted. Read/write.

Syntax

expression. ReturnDataLabel

_expression_A variable that represents a WebOptionButton object.

Example

This example creates a new Web text box and specifies the label for the text in the text box when the page is submitted.

Sub LabelWebTextBoxControl() 
 With ActiveDocument.Pages(1).Shapes _ 
 .AddWebControl(Type:=pbWebControlSingleLineTextBox, _ 
 Left:=100, Top:=100, Width:=300, Height:=15).WebTextBox 
 .DefaultText = "Please enter your name here" 
 .Limit = 70 
 .RequiredControl = msoTrue 
 .ReturnDataLabel = "Full_Name" 
 End With 
End Sub
© 2018 Microsoft