Hello,
in CF 7, I want to display on the email subject that goes to the recipient, a mix like for example :
"Your request + [content of a field]".
I tried {my_field_name}, {my_field_id}, {var:my_field_name} but I can't make it work.
Any idea please Max to show that ?
All the best,
Philippe
Hi Philippe,
The "Shortcodes Cheatsheet" that you can view from the 'book' icon near the right end of the menu bar in the form editor suggests {data:field_name}
Bob
Hey Bob,
thanks it works using {data:field_name} !
Thx for your help,
Philippe
Hi Bob,
I do have an similar issue:
My form is not sending any email. Not to me (administrator) nor to the user (different email address).
And the Thank you page is not shown either!
Do you have any clue what I am doing wrong?
Thx in advance,
Sascha
Hi Sascha,
Not the same issue at all, but I'll reply here as best I can. Check first that the Test email link in the Site Configuration settings works OK. If it does then try turning on the ChronoForms Debugger to see what is shown there.
Bob
When I click on the "Shortcodes Cheatsheet" the page freezes on the browser and nothing shows up, any other way to understand what to put within the curly brackets { } ?
Shortcodes Cheatsheet
{data:field_name} Return the value of a specific field or request parameter with the name "field_name"
{var:action_name} Return the result value of an action with the name "action_name"
{session:var_name} Return the value of a variable stored in the session with the name "var_name"
{global:global_var_name} Return the value of a global variable desfined under the global Chronoforms settings
{user:variable} Return the value of the logged in user's variable named "variable", like id, username, email...etc
{date:format} Return the current date with the format string passed as "format", if format is empty then use mysql date format Y-m-d H:i:s
{locale:language_string} or {l:string} Return the translation of a defined locale string under the current active language
{app:title} Return the form title, you may also get id or alias
{document:var} if var is "title" then return the current page title, else if var is "url" then return the current page url
{site:title} Return the site's title
{str:uuid} Return a unique id string
{str:rand} Return a random number
{str:ip} Return the client IP address
Hi Bob,
I have a similar issue as the first post in this thread:
In v5 I have a "custom code" with "Action Label" "subject" to get the subjet field in the emails:
<?php
$form->data['subject'] = "Anmälan till ungdomsgrupp {$form->data['input_select_9']}";
?>
I'm having a hard time to translate this to v6 coding.
Regards
Dennis
Hi Bob,
I managed to do this: "Anmälan till ungdomsgrupp {data:input_select_9}" and it seems to work.
BUT I don't know how to save the "Subject" to the DB.
//Dennis