In this example, the contents of two text entry fields, First
name and Last name, are concatenated and placed in a third
text entry field, Full name.
Steps for creating this example
Use the Change name choice on the pop-up menus of the entry fields to change their names to First Name, Last Name, and Full Name.
concatenateNames | firstName lastName | firstName := self subpartAttributeValue: #(#'First Name' #string). lastName := self subpartAttributeValue: #(#'Last Name' #string). ^firstName, ' ', lastName.
The connection appears as a double-headed arrow pointing to an icon representing the script.
The string attribute of the Full Name text entry takes value based upon the script that combines the values of the other two entry fields. Whenever either of the source string attributes changes in value, the script runs again, updating the contents of the Full Name field.