Moxi Media Inc.
<prompt> Discussion Forum
IMF Developer's Guide » Print Configuration » <template> » <prompt>  

The <prompt> element is used to add a prompt to the map request page to collect additional information from the user to add text to the map. The prompt can be a text input area or a select combo box. The resulting text can be added as a single line or a paragraph.

Frequency Parent Elements (the <prompt> element is valid within):
PO+ <template>
   

Frequency Description (in this context)
PO+ The <paragraph> element may appear one or more times within the <template> element in any order.
   

Attributes Description
alignment The alignment of the text, relative to the position. Valid values are "left", "right", and "center". Required.
font The font of the text, chosen from one of the following valid font names: "helvetica", "helvetica_bold", "helvetica_boldoblique", "helvetica_oblique", "times_roman", "times_bold", "times_bolditalic", "times_italic", "courier", "courier_bold", "courier_boldoblique", "courier_oblique". Optional, defaults to "helvetica".
font-size The font size for the text, expressed in points. Integer value expected, example: font-size="9". Optional, defaults to "9".
line-height The line height for the text, expressed in points. Used for spacing the lines of the paragraph. NOt used for "text" types. Integer value expected, example: line-height="12". This value should typically be 133% of the font size. Optional, defaults to "12".
method The type of prompt displayed on the map request form. Valid values are "input" for a text input entry box, or "select" for a combo box of items for the user to select from. Optional, defaults to "input".
name The text that is displayed to the user beside the prompt. Required.
position The page position of the text, expressed in the units specified in the units attribute of the <template> element. The position should be two numbers separated by a comma (with no white space), representing the x and y location. For example, if the units are "points", a value of "72,72" would indicate a position one inch from the left side and bottom side of the page. Required.
prefix Text to appear before the text. Optional, defaults to no prefix.
select-options If the method attribute is "select", this attribute is used to define the list of items available for the user to select from. Multiple text items are separated by commas. See example below. Required if method="select".
size The size of the area where the paragraph will be printed, expressed in the units defined in the "units" attribute of the <template> element. The size should be two numbers separated by a comma (with no white space), representing the width and the height of the paragraph area. For example, if the units are "points", the entry for a two inch square would be size="144,144". If the units are points, and the paragraph element contained attributes like position="72,72" size="144,144", then the text will be written into the area with page coordinates (inches) 1,1 to 3,3. If the text doesn't fit into the area specified, it will be truncated. Required.
suffix Text to appear after the text. Optional, defaults to no prefix.
type The type of text to add to the page. Either "text" or "paragraph". Default is "text".
   

Example:

<prompt name="Water Licence" type="text" method="input" font="times_roman" font-size="9" prefix="LICENCE: " alignment="left" position="310,67"/>
<prompt name="Ministry" type="text" method="select" select-options="Ministry of Forests,Ministry of Sustainable Resource Management" font="times_roman" font-size="9" alignment="left" position="350,67"/>

Valid HTML 4.01!