Back Forward Source HTML tags and attributes — Overview

Use special care when configuring these HTML tags in source HTML.

Description

Tag

Form tag

In most cases, omit attributes in the form tag:

<FORM>

You can use the URL directive to specify a default action in the FORM tag. For example:

<FORM ACTION={URL "default-action-specification" } >

Submit buttons

<INPUT TYPE="submit" NAME="pyStream=myStream">

<INPUT TYPE="submit" NAME="pyActivity=myActivityClass.myActivity">

Anchors

<A HREF="{URL "pyActivity=Myclass.myActivity"}"><P>My anchor text</P></A>

Images

<IMG SRC="myImage.gif">

Text boxes

Use this syntax for a text box:

<INPUT TYPE="text" NAME="{THIS-NAME}" >

For a text box defined in an HTML Property rule, see the Note.

Use ordinary HTML to present a fixed list of drop-down choices.

Optionally, use the Dynamic Select control to provide a drop-down list of choices for the user, determined by a custom activity. See Dynamic Select control.

Check boxes

The syntax for a check box looks like:

<INPUT NAME="myPage.myProperty" TYPE="checkbox"
VALUE="true" >

For a text box defined in an HTML Property rule, see the Note below.

Selection boxes

Use this syntax for selection boxes:

<SELECT NAME="{THIS-NAME}">
<OPTION VALUE="CORP">Corporate Account
<OPTION VALUE="REG">Regular Account
<OPTION VALUE="PRES">Prestige Account
</SELECT>

For a text box defined in an HTML Property rule, see Note below.

TextArea

Use this syntax for a text area:

<TEXTAREA NAME="{THIS-NAME}" ROWS="n" COLS="n">
your default text</TEXTAREA>

For a text box defined in an HTML Property rule, see the Note below.

Option buttons (radio buttons)

Use the Foreach directive and the With directive to produce a set of option buttons that correspond to property values.

For example, the following source creates a line for each child of the MyChildren property, a Page List:

{with target = ".Target" }
{foreach in .MyChildren }
<input type="radio" id="SelectChild" value="$THIS.ChildName" >
{.ChildName}<BR>
{endforeach}
{end}

and stores the name of the selected child in the Select

NoteNote:When you use an INPUT element for a text box, check box, selection box or textarea in an HTML Property rule, omit the NAME attribute and its value. The system determines the NAME and value from the property rule that references the HTML Property rule.

Definitions stream processing
Related topics About HTML Property rules
Comparing source HTML and processed HTML
Directives
Special characters in Source HTML

UpSource HTML tags and attributes