Hi!
Now I'm working on Zoo catalog which has a vacancy and resume. Both (vacancy and resume) it's like a Zoo item. On the vacancy page, I have a button "Send resume" which show Chronoforms form after the click.
I need to get an e-mail address from a vacancy page and send form "Send resume" on it. How I can do it with PHP? Help please.
Now I'm working on Zoo catalog which has a vacancy and resume. Both (vacancy and resume) it's like a Zoo item. On the vacancy page, I have a button "Send resume" which show Chronoforms form after the click.
I need to get an e-mail address from a vacancy page and send form "Send resume" on it. How I can do it with PHP? Help please.
You can set the VALUE of the button to the ID of the vacancy, store it in a hidden field on the form that opens when you click the button, and when sending the email read the database using the ID to get the email address.
Link: http://ufa.artcolorit.com/vacancy/senior-frontend-developer
At this page, you can see an e-mail.
At the bottom, I have a button. When I click it form Chronoforms display. I need to send this form on an e-mail from the page. Now I know how to get this e-mail, but how I can write this e-mail in recipients list with PHP?
This code to get e-mail from Zoo Item with PHP:
At this page, you can see an e-mail.
At the bottom, I have a button. When I click it form Chronoforms display. I need to send this form on an e-mail from the page. Now I know how to get this e-mail, but how I can write this e-mail in recipients list with PHP?
This code to get e-mail from Zoo Item with PHP:
$zoo = App::getInstance('zoo');
$items = $zoo->table->item->getByType('resume');
foreach ($items as $item => $elements) {
$itemMail = $elements->elements['486c9614-1e53-4a16-b944-c0e66ba232e8'][0]['value'];
}
How I can get value from field "Recipients list" in E-mail field and then change this value using PHP?
I don't know anything about how Zoo works. You'll probably have to put an ID or whatever you can use to identify the Zoo item in the params of the button
ah ok. Put your code in a PHP block, return it (you'll want a string or an array of strings being valid email addresses) and then in recipient put {var:php_block_name}
This topic is locked and no more replies can be posted.