Forums

Form Submission to ACL groups

megat 29 Mar, 2017
Hello

I have a project where front end visitor will need to leave a message to group of users on the back end, vary by their subcategories under Registered Users such as vendor, staff and suppliers, basically each of these groups has their own special group IDs

My project consist a custom registration groups, where all the new user registration will be categorized based on their roles as mentioned before, creating a mailing list is not practical for my project here as the user base were keep growing, and i want a smooth automated process to ensure the system efficiency

How can i have, a front end form where visitor can leave a message to specific user groups (based on their IDs) and they will receive the new message notification via email?

Many thanks for your kind assistance

Regards
GreyHead 29 Mar, 2017
Hi megat,

You can use a Custom Code action to check the current Users Group(s), look up the corresponding email addresses and set them using the Dynamic Email box. This will work OK if there are a few addressees. If there are more than twenty or so for the same email then you might be better to use a dedicated mail service - I think you could do this with AcyMailer for example by setting up a list for each group and triggering a mailing to that list.

Bob
megat 29 Mar, 2017
Hi Greyhead,

Thanks for the tips,

Where can i get the code? Can you provide them for me? I'm willing to subscribe if reasonable here

I have few custom fields as part of the contact form layout and i don't see so the Acymailer currently works best here

Thanks
Max_admin 30 Mar, 2017
Hi megat,

You can do this using the new Chronoforms v6, you can use a "Read data" action to read the users emails based on a selected group id, then pass the emails list to the email action to send an email to all the users.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
megat 30 Mar, 2017
Hi Max,

Thanks!

Seems that i'm among the first to use the newly released version

Let's me play around first

Regards
Max_admin 30 Mar, 2017
Hi Megat,

Yes, and let me know if you face any difficulties!

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
megat 30 Mar, 2017
This is the form layout map
-----------------------------------
Name
Email
Phone
Text Area

Selection Field
--- Department A (User Group IDs 1)
--- Department B (User Group IDs 2)
--- Department C (User Group IDs 3)

[Submit]
---------------------------------------------------------
I need to be clear on this, the Selection Field is where visitor will select their intended department, and all the submission text will go

to the preset users in the ACL user groups as message, I've put them under default Registered User

Does it possible?

Thanks
Max_admin 30 Mar, 2017
Hi Megat,

When you say "ACL user groups", you mean the Joomla user groups ? because then you say that the users are under "Registered".

The way to do this is to use a "Read data" action with 2 models, main model for the users, and a related model for the ACL group, then load the users list and send the email to them, there are some technical details needed on how to configure the models and how to call the emails list.

I can give you some steps but after you tell me what is the ACL group.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.