• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Values available in php scripts

Values available in php scripts 11 years 11 months ago #23118

  • lunagraphica
  • lunagraphica's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
I have a couple of questions about php scripts within forms, that relate to the order in which the scripts are invoked, and the scope of the scripts.

First:

The "script called before user email is sent" has access to $userEmail

However, if I try to access $userEmail in "Script called after form has been processed", all of the values are empty. Why is that?

Second:

Is it possible to pass data between the scripts? Can a global variable be set in one script, and retrieved in another?
The administrator has disabled public write access.

Values available in php scripts 11 years 11 months ago #23138

  • lunagraphica
  • lunagraphica's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
If anyone is interested, here's a response from support:



Each script field has variables that are only available for that section, like the $userEmail variable in the "PHP Email Scripts" tab or the $invalid variable in the "PHP Scripts" - "Scripts called on form process".

RSForm!Pro uses standard PHP code, thus you can define Global variables using the standard syntax. The order in which the script fields are triggered is:

- Scripts called on form display
- Scripts called on form process
- Scripts called after form has been processed
- User email scripts
- Admin email scripts
- Additional email scripts

Regard!
The administrator has disabled public write access.
The following user(s) said Thank You: miroslav.orlik
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!