Home →
Using LincDoc 3.0 →
Field Attributes →
Checkboxes
6.5. Checkboxes
Overview
Checkboxes are represented by two special field types in LincDoc: a checkbox "grouper" field, and 1 or more checkbox items which compose the group. The grouper field type allows LincDoc to logically group the individual checkboxes and present them to the user when completing an eForm. The way in which this is accomplished is by using checkboxes in the source document, and applying a special naming pattern to the checkboxes. The method varies depending on the source document type.
Checkboxes in a Word source doc
Follow these steps to define checkboxes in an MS Word document.
NOTE: there are two types of checkboxes in MS Word, legacy and ActiveX. A legacy check box must be used.
Use the following steps (note: these steps were written using MS Word 2007).
- Open MS Word.
- Turn on the Developer Ribbon.
- Click the Microsoft Office Button, and then click Word Options.
- Click Popular.
- Select the Show Developer tab in the Ribbon check box.
- On the Developer tab, in the Controls group, click Legacy Tools.
- Click the Legacy checkbox form field; ActiveX checkboxes are NOT supported.
- Right click on the check box and select Properties.
- Enter the name for the checkbox in the Bookmark attribute. A checkbox name should be defined in the format groupname_itemname. The groupname prefix is used by LincDoc to determine related checkbox items so that they can be logically grouped together in the data entry interface. The itemname suffix is an unique identifier that defines the check box item. For example, color_red, is a good name for a checkbox. color is the groupname and red is the checkbox itemname. For additional items you could make more checkboxes named color_blue, color_orange and color_green.
NOTE: groupname and itemname must NOT contain any underscores.
- Repeat this step for each checkbox.
- Save changes and upload the document (from the Source Docs tab).
- Create a new eForm and add in this document.
- In the Fields/Sections tab you should now see the groupname as a new field, whose type is checkbox group (and is not changeable). This is sometimes referred to as the grouper field. Also you should see each checkbox as a separate field, and they are all of type checkbox item (and is unchangeable).
- In the Fields/Sections tab select the grouper field so that you can see its attributes. Notice it has options to set a minimum and maximum number of checked items. Set these if desired.
Checkboxes in a PDF source doc
Follow these steps to define a group of checkboxes in a PDF document.
- Open Adobe Acrobat.
- Add a checkbox field to the PDF document.
- Right-click on the checkbox and choose to edit the properties.
- Enter the name of the checkbox. Use the convention for naming the checkbox as described above for a Word source doc: groupname_itemname format.
- Optional: add a label to the Tooltip attribute. LincDoc will copy this value and use it for the Label definition for this field.
- Click on the Options tab.
- Ensure the Export Value is set to Yes (note: case sensitive). If it is not set to "Yes" then the checkbox will never be checked when the form is generated (regardless if the user checks it or not).
- Repeat this step for each checkbox.
- Save changes and upload the document; the same steps from here on out apply as described above with Word source docs.
Radio Groups
LincDoc does not have a radio button widget, but radio button functionality can be implemented using a combination of PDF radio buttons in a source document and a drop down list in LincDoc. This will allow the user to select one and only option. Use the following instructions to enable radio button functionality in your form (NOTE: for XFA forms see the section below):
- Create a group of radio buttons in your PDF source document. Note: the radio button group name is specified for each radio button (in Adobe Acrobat, under the General tab, "Name").
- Login to LincDoc.
- Locate the field corresponding to the group of radio buttons, and make this field a list box (in this example, chicken_or_beef) - Note: the use of combo boxes are not allowed for this feature.
- Edit/create a code list for the list box.
- Make sure the label in LincDoc is the same value as the button value (in Acrobat under the Options tab) of the radio button in the PDF document.
- For example, if the radio button value in your PDF is 'chicken', your label would also be 'chicken'.
- Note: Case matters - the label and field name must match exactly.
- Select OK to save and close.
Your radio button group will now be controlled by the list box that was just created.
Radio Buttons in LiveCycle XFA forms
NOTE: XFA forms are only supported in LincDoc 2.2 or higher. As noted above, LincDoc does not currently have a radio button widget, but a drop down list can be used to select a specific radio button in an XFA form. There are a few configuration steps that need to be followed to enable the use of XFA radio buttons. The first is to create an exclusion group that will contain all the radio buttons for a specific LincDoc field. An exclusion groupis Adobe's term for a group of radio buttons. Only one radio button in the exclusion group can be selected at a time. The exclusion group name will be the name of the field that appears in LincDoc. Create a code list containing the unique values for each radio button in the exclusion group.
- Open the Livecycle designer
- Add individual radio buttons (see these Adobe instructions)
- Using the control key on your keyboard select the individual radio buttons that make up the exclusion group
- Right click on the exclusion group and select "Wrap in New Radio Button Group" (You may get an error saying at least 2 radio buttons have the same value)
- Select the exclusion group
- Check "Specify Item Values" in the exclusion group object configuration box
- Select an individual radio button from the exclusion group (the value of that button will be highlighted in the value list in the object configuration box)
- Double click the highlighted value and enter the corresponding value that will exist in your LincDoc code list
- Save and commit your XFA form to LincDoc
- Login to LincDoc
- Edit the form, and press the reparse button from the fields tab
- Select the exclusion group name in the LincDoc field list
- Select list box or combobox
- Create a new User Input code list
- Enter values for the code and label that match the values entered in step 8
- Save the code list
- Test the form
In the example below we have an XFA form that has 3 radio buttons, Red, Green and Blue. We have a LincDoc form that will select one of those colors in the PDF when generated. You can download and import this example into your clientID by clicking this link. Follow these instructions to import this test form. Watch this video to see how to prepare your radio buttons in Adobe Livecycle. Watch this video to see how to create the code list in LincDoc and the resulting output.