Forums

Can not use $this->data{'fieldI name') in PHP action block

kittisak 19 Jun, 2024

I try to use simple PHP code in PHP action block to retrive data from text field with this code

if ($this->data('text_12') == "Yes!"){      return "Reload";        } else {          return $this->data('text_12');}on debug this PHP block have no any value.What's wrong?

rbock 19 Jun, 2024
Answer

Where did you insert the PHP action? In the submit tab? I just tested it and it works. Text in the load tab, PHP action in the submit tab.

You need to login to be able to post a reply.