Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

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 5 months ago - 4 years 5 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 5 months ago by supoeric.

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

  • beat
  • beat
  • ONLINE
  • Posts: 2174
  • Thanks: 463
  • Karma: 352
4 years 5 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