Does anyone know how to pass variables from FrontEndUser to FormBuilder fields/values?
What I'd like to do is automatically load the username/email of a logged in user into hidden fields within FormBuilder.
Any help/suggestions would be greatly appreciated.
Cheers!
Passing FEU variables to FormBuilder?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Passing FEU variables to FormBuilder?
it's documented within the forbuilder help (if I recall correctly).... how to pass values into formbuilder.
Now you just need to know the smarty variables..... you'll need CustomContent installed, and try doing a {get_template_vars).
Now you just need to know the smarty variables..... you'll need CustomContent installed, and try doing a {get_template_vars).
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Passing FEU variables to FormBuilder?
my vision may be failing... however, i can't seem to locate the 'pass values into formbuilder' info within formbuilder help.
hadn't utilized the {get_template_vars} before - good idea
hadn't utilized the {get_template_vars} before - good idea
Re: Passing FEU variables to FormBuilder?
Okay - vision is restored - thanks Calguy
The heading that this falls under in FormBuilders help page is "Passing Default Values to Forms". Seems kinda obvious don't it! *doh*
The important bit is that it works like a charm.
Cheers!
The heading that this falls under in FormBuilders help page is "Passing Default Values to Forms". Seems kinda obvious don't it! *doh*
The important bit is that it works like a charm.
Cheers!
Re: Passing FEU variables to FormBuilder?
Further to the previous posts on this thread, is there a trick to getting the passed values handled properly when submitted.
Presently I get the following error:
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/greg/tigernotes.ca/html/cms/modules/FormBuilder/action.default.php on line 120
The values in question do show in the source code of the form itself. I've tried using both the fld_## value and the fieldname. Both yield the same result.
Presently I get the following error:
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/greg/tigernotes.ca/html/cms/modules/FormBuilder/action.default.php on line 120
The values in question do show in the source code of the form itself. I've tried using both the fld_## value and the fieldname. Both yield the same result.
Re: Passing FEU variables to FormBuilder?
Yes, I have exactly the same problem, so if anyone can help there will be at least two very happy people 
