Tag Definition: choiceField
Generated by rlextra version 4.3.0a1
Attributes
Name |
Required? |
Default_Value |
Values |
annotationFlags |
implied |
None |
|
borderColor |
implied |
None |
|
borderStyle |
none |
solid |
['solid', 'underlined', 'bevelled', 'inset', 'dashed'] |
borderWidth |
implied |
None |
|
dashLen |
implied |
None |
|
fieldFlags |
implied |
None |
|
fillColor |
implied |
None |
|
fontName |
implied |
None |
|
fontSize |
implied |
None |
|
forceBorder |
none |
false |
['yes', 'no', '0', '1', 'true', 'false'] |
height |
implied |
None |
|
maxlen |
implied |
None |
|
multiline |
none |
true |
['yes', 'no', '0', '1', 'true', 'false'] |
name |
implied |
None |
|
relative |
none |
true |
['yes', 'no', '0', '1', 'true', 'false'] |
textColor |
implied |
None |
|
tooltip |
implied |
None |
|
value |
implied |
None |
|
width |
implied |
None |
|
x |
implied |
None |
|
y |
implied |
None |
|
Can contain |
Purpose
This lets you add a dropdown choice form field that can be edited and saved with the pdf.
Example usage
<template>
<pageTemplate id="Page" pageSize="(595, 842)">
<pageGraphics>
<choiceField name="choice" x="150" y="650" width="100" height="25" tooltip="tooltip choice" value="1">
<choice label="Option 1" value="1"/>
<choice label="Option 2" value="2"/>
<choice label="Option 3" value="3"/>
</choiceField>
</pageGraphics>
<frame id="Frame 1" x1="30" y1="30" width="535" height="782" showBoundary="1"/>
</pageTemplate>
</template>
Note: Only relevant sections are used in this snippet. Some tags were not included. See some of our samples for further insight of how you may go about setting up a full document using rml.
Scroll down in the above link to test_028_fields.rml
and test_028_fields.pdf
Example of nesting path from the parent tags to the current tag
<document> ➔ <template> ➔ <pageTemplate> ➔ <pageGraphics> ➔ <choiceField>