Buy Now
Sign in

Shortcodes not working

gabi , August 13 2017
Answered
gabi
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:







The url to my form is: Forsamlingshus form

I cant figure out what is wrong.
I am using Chronoforms 6 manual, but
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
gabi
Heya.

That made it.
Thank you so much.

Have a nice day
S
s.elena133
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.
Attachments
error.png
error.png
(50.15 KiB)
90 Downloads/Views
GreyHead
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
healyhatman
(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");
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman
S
s.elena133
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}