decorative banner

Adding form elements


    CHTML supports forms so viewers of your site can interact with your pages. The information your viewers send with the form must be processed by a Common Gateway Interface (CGI) script on the host server. Talk with your Web hosting provider to set up your CGI functions. Most of the HTML form elements are supported, but be sure to test your form on all the devices you want to reach. For more information on designing forms, see GoLive Help.

To add form elements:

  1. Drag the Form icon from the Form set in the Objects palette to your page. All other form elements should be within this container.
  2. Drag other form icons from the Form set in the Objects palette to your page, and configure their Inspectors.
  3. You can add text fields, password fields, check boxes, and submit buttons. When you configure the Objects palette for CHTML, the form elements visible in the palette are valid in CHTML pages. For more information on adding and setting up form elements, see Adding form elements. As you add form elements to CHTML pages keep the following tips in mind.

    • Set the visible attribute of text fields to fit within the Phone screen. Usually it's safe to set the visible attribute to 15.
    • To allow users to quickly select an option using their keypads, set the access option in the Inspector for that element. Generally you'll set a number from 1-9. Also remember to label the option with the access key number.
    • For text input, set the istyle attribute to specify the allowed input type, rather than relying on your users to change it on their phones. Japanese is the default when you don't specific istyle. Set istyle to 1 for full width Japanese Kana. Set istyle to 2 for half width Japanese Kana. Set istyle to 3 for half width roman alphanumeric characters (English). Set istyle to 4 for half width roman numeric characters (English). You set the istyle attribute in the source code. For example:

    <input type="text" name="textfieldName" size="15" istyle="2">