Add another action button...

brownsmart 03 Nov, 2014
How would I go about adding a button to the existing tool-bar, which redirected to a form which carried over the field data from the selected row in the connectivity table?

To be then used as a means to send a message to an email address in that selected row?

Any points in the right direction or guides would me much appreciated..

Thanks.
Max_admin 03 Nov, 2014
For this you need a custom toolbar button, please check earlier forum posts here.

You can also install v5 beside your v4 and try it, this task should be easier as you have more control over the toolbar buttons and there is a Help tab explaining how to do this in the connection page itself!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
steven5324 03 Nov, 2014
Hi Max,

I'm also struggling with the same problem, and I also need e-mails to be sent to addresses from the selected rows. I found a thread regarding adding custum toolbar buttons and did what was said there:
- In CC, in Toolbar tasks I entered: reminder:Send reminder:1
- At Front editing tab, I chose the correct form and entered in Custom data tasks: reminder
- In the connected form I added an event 'reminder' and placed a Show HTML action and a debugger.

Clicking my newly added 'Send reminder'-button resulted in an empty page, and I was not redirected to my form.


I couldn't find more than the mentioned thread about custom buttons, tried a lot, so, can you maybe point me in the right direction?

Also using CC4 and CF4 (since I made a few tweaks, so CC5 is not really an option...).


Thanks in advance!

Steven
brownsmart 04 Nov, 2014
Hi Steven,
would you like to team up and try figure this out?
... as I don't fancy using CF5, as that will slow down the project I'm working on... lol.
brownsmart 05 Nov, 2014
Answer
Hi all,
I figured out what I wanted to do not sure if this help everyone but, its easier to make a custom listing in the results, with a link that does the action you need.

hit me up for more details...
steven5324 05 Nov, 2014
Hi brownsmart,

Yes sure but I have no clue what to try😉
Is it possible to send multiple users an e-mail at once with your solution?

Still hope Max is coming to the rescue about the toolbar button haha.
Max_admin 05 Nov, 2014
Hi,

The CCv4 toolbar help notes that's the way to add a custom button:
Task:LABEL[:selection_required(1/0)]

So you can use:
email:Email:1

Then go to the "Frontend editing", and in the "Custom data tasks", enter "email" so that CCv4 can process this new task.

Then you will need to add a new event called "email" to your form (event is a new green area), and you can use a "Debugger" action to debug the data sent to the event, (you may only get the records ids), if so then you will need a "Mult db record loader" to load the data, then PHP code to concatenate the email addresses, then you can use an Email action and pass the address inside the $form->data array to the "Dynamic To" box!

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.