Shortcodes not working

How to fix shortcodes not displaying form data in a thank you message.

Overview

The issue occurs when using incorrect placeholder syntax for form fields.
Ensure you use the correct placeholder format, such as {data:field_name}, to reference form data in your thank you message.

Answered
ChronoForms v6
gabi gabi 13 Aug, 2017
My new form in V6 is getting better and better, but I have a few issues.

One of them is the "Thank you message" that pops up after ppl sending the form.

I want to include data from the form. Name, date etc. but nothing shows up.

My settings are as follow:

Shortcodes not working image 1

Shortcodes not working image 2

Shortcodes not working image 3

The url to my form is: Forsamlingshus form

I cant figure out what is wrong.
I am using Chronoforms 6 manual, but
Max_admin Max_admin 13 Aug, 2017
Answer
1 Likes
Hi gabi,

What is the name of your form field ? is it "dato" or "form_field_dato" ? if its the first then you should use {data:dato}

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gabi gabi 13 Aug, 2017
Heya.

That made it.
Thank you so much.

Have a nice day
ca cambium 16 Jun, 2018
Hello!

When i try to call the function with short code i get the syntax error with text: unexpected "}".
The function was created under the events tab.
Tell me please where my code is wrong (or settings are)?


Much thanks in advance.
Gr GreyHead 17 Jun, 2018
Hi s.elena133,
​
The code is nearly impossible to read in the image. Please copy and paste the code as text here, and also the full error message that you see.
​
Bob
he healyhatman 17 Jun, 2018
(3rd time I've said this in 2 days)
​
You CANNOT use shortcodes in PHP code.
​
{var:} ---> $this->get("var_name", "default value");
{data:} ---> $this->data("data name", "default value");
ca cambium 18 Jun, 2018
Hi, Bob!
Sorry for delay.
Code of function in "PHP" element (in articleID event):
$view = JRequest::getVar('view');
$article_id = null;

if ($view == "article") {
$article_id = JRequest::getInt('id');
}
return $article_id;
And the code of calling in load event
{fn:articleID}
This topic is locked and no more replies can be posted.