This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
admin-only fields
Started 16 years ago by walags | 3 posts |
-
Just purchased this product and will be playing with it this week. I have a question about the private fields...
How do you go about automatically populating the private fields? I have a user authentication website and can run a script to get the username and other data. Am I able to use this to pass the data to the private fields?
I want to automatically pass the username, name, and email. Thanks.
Posted 16 years ago # -
[url]http://www.appnitro.com/forums/topic/enable-code-in-admin-only-fields#post-495[/url]
is this still the best way to go about it...
if(($_REQUEST['id'] == 12) && ($element->id == 3)){
$element->default_value = $_SESSION['your_session_var'];
}Posted 16 years ago # -
yes, that code still worked fine.
MachForm Founder
Posted 16 years ago #
Reply
You must log in to post.