replace( old_text, start_num, num_chars, new_text )
Replaces a piece of the specified text with new text.
Keyword | Type | Description |
---|---|---|
|
Text |
The original text before replacement. |
|
Number |
The positional index of the first character of the substring to be replaced. |
|
Number |
The length in characters of the substring to be replaced. |
|
Text |
The text that will be inserted into the old text in place of the extricated substring. |
Text
The first character of the entire text value is considered to have an index = 1.
replace("oldtext",1,3,"new")
returns newtext
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Compatible | |
Process Events | Compatible |
replace() Function