Community articleThe Form Sample Application
Added by IBM contributorIBM on November 25, 2011
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.

The Form library sample application demonstrates more of the functions available in the API.
This application reads into memory an input form called formSample.xfd. It then reads the current date and birth date values from the form and sets a formula on the Age field that automatically computes the user’s age. Next, the application determines the user’s gender based on the radio buttons in the form. It then replaces these buttons with an image representing the user’s gender. Finally, it duplicates the address field to create a mailing address field. When complete, the application saves the changes made to formSample.xfd in a new form called output.xfd.
These steps explain how to run the form sample application in the Viewer.