# Set User Defined Text Item

This function is used to set the contents of a UDTI. You can optionally choose to set only if the destination is empty and/or only if the source is not empty.

Both the name and value fields may contain any of the escape sequences described in Escape Sequences A disclosure button is provided for commonly used UDTIs.

UDTIs may be accessed from within text fields which support escape sequences. The sequence is: \^UDTI name^. They may also be read via the User Defined Fields statement. Avoid the use of ^ characters in UDTIs names. If present, ^, will make it impossible to access the item via an escape sequence.

While the User Defined Fields statement also provides the set functionality, this statement is not restricted to providing the source in a variable.

Note that due to the implementation, if the UDTI is mapped to a Custom field, the Custom field will be set. Further, if the value being assigned is completely empty, the UDTI will be removed.