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


  1. walags
    Member

    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 15 years ago #
  2. walags
    Member

    [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 15 years ago #
  3. yuniar

    yes, that code still worked fine.


    MachForm Founder

    Posted 15 years ago #

RSS feed for this topic

Reply