Messaging System

Hi everyone — I’m fairly new to Knack (about two months in), and I’m building a messaging system in the NextGen version.

I have a One-To many Messages Table already built and functional with Users object and a Messages object (one user → many messages). I can successfully submit messages into the Messages table, but I’m trying to automatically associate each message with the logged-in user without requiring the user to manually enter their name or email.

Specifically, I’m looking to:

  • Have the logged-in user submit their message, and then upon submit, it would pull in their name and email from their role table (one-to-one table), and then automatically stamp or insert their name and email into the one-to-many messages table.

I understand some Classic methods don’t apply in NextGen, so I’m hoping someone can point me to the recommended NextGen approach (connection field settings, rules/workflows, or best practices).

If anyone has a simple example or can explain the correct setup, I’d really appreciate the help. Thanks in advance!

Hi @davidchoatehughes - I’m a visual person so may be misunderstanding your setup. If you have your messages table connected to the users table, then you will already have the persons details in the messages table. How it is displayed depends on which field in your users table you have set as the display field. You can change the display field to their name or email address. You can also use a text formula to pull through other fields from the users table to the message.