Community articleThe Form Sample Application on AIX, Linux, and Solaris
Added by IBM contributorIBM on July 26, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

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 in a new form called output.xfd.
Run the form sample application in IBM® Forms Viewer to view what you have created.
Run the form sample application in IBM Forms Viewer to view what you have created.