This mean that field will change after each accepted connection.
To do this, depending if you want to change the field of the user having requested the connection ([var2]) or the field of the user having accepted the connection ([var1] or just #me), you would be setting up one (or both) of these auto-actions:
- Type: Field (default autoaction type)
- Trigger: onAfterAcceptConnection
- Conditions: (none)
- Action:
- Field: connection_username
- Operator: Set (Field=Value)
- Value: [cb:userdata field="username" /]
Or, for the other way around:
- Type: Field (default autoaction type)
- Trigger: onAfterAcceptConnection
- Conditions: (none)
- Action:
- Field: connection_username
- Operator: Set (Field=Value)
- Value: [cb:userdata field="username" user="[var1]" /]
- User: [var2]