How to create a Auto Action to auto update the field after user accepted connec

3 years 8 months ago - 3 years 8 months ago #319444 by supoeric
HI,
I create a custom filed "connection_username",
how to create a Auto Action to auto update this field after user accepted connection.

Best Regards
Eric

Please Log in to join the conversation.

3 years 8 months ago #319455 by beat
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]

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.968 seconds

Facebook Twitter LinkedIn