text-input to php-variable

Access form field data in ChronoForms 7.

Overview

The issue occurs because the syntax for accessing form data changed from CF5 to CF7.
Use the correct object reference to retrieve the field value.

Answered
ChronoForms v7
TR TReissig 18 Jul, 2023
Hello Forum,
I am new to CF7 and am trying to manually transfer all my forms from another site (CF5). So I am creating them completely new in CF7.
I have a form there, where after entering a serial number is checked whether a matching file is on the server.
In CF7 is on start_page the text field "sn".
On end_page the check should run via PHP. But here I fail to pack the content from the field "sn" into a php variable.
In CF5 I simply used
$s_sn = $form->data['sn'];

In CF7 this does not work.
I've already searched the forum and kept coming across the same syntax. But what am I doing wrong?

Here you can download a backup of the form: https://we.tl/t-ZniJC8pZOO
Hope anyone can help me a little bit๐Ÿ™‚
text-input to php-variable image 1
text-input to php-variable image 2
TR TReissig 18 Jul, 2023
Answer
Solved by myself.
Instead of
$s_sn = $form->data['sn'];

I have to use
$s_sn = $this->data['sn'];
This topic is locked and no more replies can be posted.