Specifications
Chapter 14168
• lastChildOfNode inserts the text as the last child of a block tag; for example, if you want to 
insert something at the end of a 
FORM tag (useful for adding hidden form fields).
• nodeAttribute[+attribute] sets an attribute of a tag node. If the attribute does not already 
exist, it is created. 
For example, use 
<insert location="nodeAttribute+ACTION" nodeParamName="form"> 
to set the ACTION attribute of a form. This changes the user’s FORM tag from <form> to 
<form action="myText">.
If no attribute is given, the nodeAttribute location causes the text to be added directly to the 
open tag. For example, use 
insert location="nodeAttribute" to add an optional attribute 
to a tag. This can be used to change a user’s 
INPUT tag from 
<input type="checkbox"> to <input type="checkbox" 
<%if(foo)Reponse.Write("CHECKED")%>>
 .
Note: Fo r location="nodeAttribute", the last search pattern is used to determine where the attribute 
starts and ends. Make sure that the last pattern finds the entire statement.
Attribute: nodeParamName
Description
Used only for node-relative insert locations; indicates the name of the parameter that is used to 
pass in the node at insertion time.
Parent
insertText
Type
Attribute.
Required
Only if the insert location has the word node in it.
Value
tagtype__Tag is a user-specified name for the node parameter that passes with the parameter 
object to the dwscripts.applySB() function. For example, if you insert some text into a form, 
you might use a parameter called 
form__tag. In your server behavior applyServerBehavior() 
function, you could use 
form__tag to indicate the exact form to update, as shown in the 
following example:
function applyServerBehavior(ssRec) {
var paramObj = new Object();
paramObj.rs = getRecordsetName();
paramObj.form__tag = getFormNode();
dwscripts.applySB(paramObj, sbObj);
}
You would indicate the form__tag node parameter in your EDML file, as shown in the 
following example:
<insertText location="lastChildOfNode" nodeParamName="form__tag">
<![CDATA[<input type="hidden" name="MY_DATA">]]>
</insertText>
The text is inserted as the lastChildOfNode, and the specific node passes in using the 
form__tag property of the parameter object. 










