Hi,
I thought it would be good to allow users (via front end) to be able to click a button and have their email added to a default email template of my (the website owners) choosing. This is something that would be GREAT for my site since right now I'm having to do it on a per request basis manually.😀
PS: this would be some sort of php script right?
Daniel-
Hi Daniel,
I don't quite understand this - can you give a bit more detail please?
Bob
Uuuum, actually this should be in the Chrono Forms area...:P
Either way, here's an example:
On my website, users (buyers) submit requests for price quotes for various products and services. Other users (suppliers) then view these requests online or download them into a CSV file (all with chrono forms and connectivity I might add🙂 ). I use the feature in Chrono Forms which allows the form to be emailed to various people to allow the suppliers to receive the requests in their email. Since right now I add and remove their emails by hand, I thought it would be nice to have the whole process automated. The suppliers would have an option to "subscribe" to a specific category (I have a separate form for each category) and their email would be added to the list of emails the forms data (on submit) will get sent to. They would also have the option to remove their email.
I'm guessing that would be really complicated lol...just an idea...
Daniel-
Hi Daniel,
If you add a table with columns user_id & catagory_id, you can populate this with the subscriptions using a new ChronoForm and then use a database lookup to pull up the subscriptions for any category when you sent the emails.
A bit fiddly but not difficult.
Bob
Great! I'll give it a shot and let you know how it goes.
PS: It's amazing how some things can have such simple solutions, but still unknown to us lol.
Daniel-
Bob,
I understand the table and using a form to populate it, but how can I do the database look up?
The way I'm thinking it should work is...
-create a table with the user ID and category columns
-create a ChronoForm for users to "subscribe" to specific categories (in order to get submitted data emailed to them.)
-write a SELECT statement for each form in each category selecting the user emails according to the category name.
-create dynamic to emails for each form using the selected emails from the SQL statement.
Question 1: Where would I put the SELECT statement?
Question 2: How do I get the dynamic email box to use the selected emails?
Unless I'm completely wrong in my thinking...if so I would appreciate a brief example...lol😀
Thank you!
Daniel-
Bob,
Thanks for the adjustments. Everything works great. I am really happy that I was able to get this to work so quickly and easily. I thought it was going to take a lot longer and be much more work😀.
Daniel-
Thanks. Using brackets works fine.
Daniel-
Hi tidusx18,
Nothing special, just one after the other.
Bob
Hi Bob,
Actualy I just removed the other code since the arrays are working correctly in RC5😀.
Daniel-