ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Access form data with custom php code

Joao Serina 31 Jan, 2018
I have a multipage form and I would like to add some custom PHP validation when moving to the next page on some of the fields.
I have placed a debugger at the start of the second page so that I can see the information I'm getting followed by the php code but, when I try to access $form->data['input-name'] I get a PHP error: "Notice: Undefined variable: form in (...)".
stami 31 Jan, 2018
1 Likes
In chronoforms v6 you have to use: $this->data('inputname');
GreyHead 31 Jan, 2018
Answer
Hi Joao,
Please see page 34 in the manual.
Bob
Joao Serina 31 Jan, 2018
This is going to sound strange but I had done that and it wasn't working for some reason but now it is!
Thank you very much for the quick reply Bob!😀
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com