Skip to Content Skip to Menu

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

  • supoeric
  • supoeric
  • OFFLINE
  • Posts: 3
  • Thanks: 1
  • Karma: 0
4 years 4 months ago - 4 years 4 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
Last edit: 4 years 4 months ago by supoeric.

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
4 years 4 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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum