WebListBox.ReturnDataLabel property (Publisher)
Returns or sets a String that represents the text used by the webpage to label the specified web object when the page is submitted. Read/write.
Syntax
expression.ReturnDataLabel
expression A variable that represents a WebListBox 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
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.