chris.paschen
Chris Paschen
I've reviewed the wiki article about PHP plugins for forms:
http://fabrikar.com/forums/index.php?wiki/php-form-plugin/
And I've also searched and reviewed a lot of other forum posts.
I've also spent significant time testing various different syntax to get and save data, as well as trying to do it at various points in the 'process script' timeline.
However, I'm now a bit more confused than ever on how to just make this work.
Here's the task ...
Form Plugin - PHP
PHP File identified
Get a couple of pieces of data from the form and then pass them to a function that I have created.
Do some manipulating of the data (calculations, etc.)
Then update several fields of the form from within the function.
Questions ...
1. At what point should I do this (onBeforeProcess, onBeforeStore, etc.)?
2. What syntax is proper (at the point provided above) for:
get data value
set data value
NOTE: One of the fields is an upload field, and I need to determine if it has a file uploaded (a simple 'not empty' process.
(If I ever wrap my head around the various get/set syntax I might even volunteer to update that wiki page with some clarifications about the use-cases. It's a bit confusing with all the versions and all the points in the process that they are called.)
Thanks for helping clear this up.
http://fabrikar.com/forums/index.php?wiki/php-form-plugin/
And I've also searched and reviewed a lot of other forum posts.
I've also spent significant time testing various different syntax to get and save data, as well as trying to do it at various points in the 'process script' timeline.
However, I'm now a bit more confused than ever on how to just make this work.
Here's the task ...
Form Plugin - PHP
PHP File identified
Get a couple of pieces of data from the form and then pass them to a function that I have created.
Do some manipulating of the data (calculations, etc.)
Then update several fields of the form from within the function.
Questions ...
1. At what point should I do this (onBeforeProcess, onBeforeStore, etc.)?
2. What syntax is proper (at the point provided above) for:
get data value
set data value
NOTE: One of the fields is an upload field, and I need to determine if it has a file uploaded (a simple 'not empty' process.
(If I ever wrap my head around the various get/set syntax I might even volunteer to update that wiki page with some clarifications about the use-cases. It's a bit confusing with all the versions and all the points in the process that they are called.)
Thanks for helping clear this up.