====== O4WTextOptions routine ====== ==== Description ==== O4WTextOption can be applied to any O4WText, and indicates which input control this text is associated with, and whether this text should be treated as a paragraph; this information is used by the browser to help control layout or to provide additional "accessibility" support. ==== Syntax ==== O4WTextOptions( labelForID, labelForType, paragraphClass ) ==== Parameters ==== The function has the following parameters: ^Parameter^Description^ |labelForId|The ID of the input control.| |labelForType|The type of the input control. Valid values are: "textbox", "radiobutton", "checkbox", or "listbox". The default is "textbox".| |paragraphClass|A flag that tells O4WText to display the text wrapped in "paragraph" (

) html tags (as opposed to its normal behavior of wrapping text in "span" () tags). Set this to "1" to have O4WText generate "

" instead of "" output. ParagraphClass can also be set to the name of a class you wish to assign to your paragraph; if a non-null, non-"1" value is specified, O4WText will generate a "

" tag with the specified class, in addition to a span (which will be nested inside the "

" tag).|| ==== See Also ==== [[o4wtext|O4WText]] routine ==== Example ==== O4WText("Customer Name: ", O4WTextOptions("CNAME", "TEXTBOX")) O4WTextBox("", "", ", "CNAME", "CNAME") O4WText("Now is the time for all good men to come to the aid of their country", "", O4WTextOptions("", "", "main")) * This will treat this text as a paragraph, with the style class "main" applied to the generated html