The DisplayText function is part of the Lite BlackBox. It allows text to be selectable while not editable, and to contain embedded links.
| Parameter Name | Description | |
|---|---|---|
| 1 | displayText | The text you want to display in the Web Viewer. This can be field contents or text, optionally with an embedded link. e.g. "Please feel free to [url=http://www.somewhere.com]visit our site[/url]. We're waiting!" will display the words "visit our site" as a hyperlink. Clicking on the link will make the WebViewer display http://www.somewhere.com. |
| 2 | textStyle | CSS Rules. e.g., DisplayText( myField; "font-style:italic" ) will display the contents of myField in italics. Any FileMaker style that has been applied to the text will override the CSS rules defined in this parameter. e.g., text set as bold in FileMaker will remain bold. |
DisplayText ( "Hello world!"; "font-family:verdana, sans-serif; color: green;" )
Refer to http://www.w3schools.com/CSS/css_text.asp for documentation of CSS text properties. Any valid CSS markup will be used.
Some useful properties:
Comments