NextGen Knowledge Center

INSERT String Function

Use:Inserts a substring into another string at a given position
Syntax:
{INSERT( «string» , «string», «num»)}
Arguments:

First «string»
    Character string to insert another string into
Second «string»
    String value to insert in another string
«num»
    Zero-based character position where the substring is to be inserted
Returns:A string with the substring inserted
Example:

Fields = txt_field1, txt_field2
{template_name_.txt_field1} = Add: text.
{template_name_.txt_field2} = new
{INSERT( {template_name_.txt_field1}, {template_name_.txt_field2}, 5 )}

Or

{INSERT( {template_name_.txt_field1}, new, 5 )}

Result: Add: newtext.