Shortcodes not working

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 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 13 Aug, 2017
Heya.

That made it.
Thank you so much.

Have a nice day
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.
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
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");
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.