How to pass variables to a form when using Caldera_Forms::render_form()?
-
Hi,
I was wondering if and how I can pass variable values to any Caldera Form, that I include via
Caldera_Forms::render_form()
function in my template?From the docs and the source code I can see, that the method takes an array as a parameter. I would like to use something like
$my_var = "some value"; Caldera_Forms::render_form( array( 'id' => 'CF5a210f15c5647', 'my_var' => $my_var ) );
Is that possible? How can I access
my_var
in the form builder and / or in processors?Thanks for any help.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to pass variables to a form when using Caldera_Forms::render_form()?’ is closed to new replies.