Forums

Re-execution of php code when changing the value of any field

Igorchch 30 Jul, 2018
Hi. There is php code (e.g. "php 1" in "setup tab") that is executed when the form is loaded. How to do that when you change the value in any of the fields, this php code would be executed again?
GreyHead 30 Jul, 2018
Hi Igorchch,

PHP code is only executed on the server so the form would need to be submitted to run it again.

You could perhaps add JavaScript to the form to do the same thing in the user's browser???

Bob
healyhatman 30 Jul, 2018
You could use AJAX / JQuery to do it, but you'd want the PHP code in a separate event.
Crams 02 Aug, 2018
Hey Igor, your question is a little too vague, you could use the reload event to run an event containing a php block or a jQuery function, but it all depends on what you really need
This topic is locked and no more replies can be posted.