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

Passing parameter to fields visible to admin only


  1. yong
    Member

    Hi, I have a form which have some fields which are visible to the admin only.
    I embed the form in a webpage using the normal embed method.
    How do I get the parameter I passed to the form url to populated the fields that are visible to admin only?

    eg. view.php?id=1&browser=IE where browser is a field that is visible to admin only.

    I can extract the browser info via javascript and generate the embed form url so that the user do not have to key in the 'browser'. How can i get the browser info to be populated in the browser field for admin user to see. Something along the line of auto recording the ip address of the form submitter.

    Posted 14 years ago #
  2. yuniar

    It won't be possible to populate a value for an admin field, since admin field is only available for admin.

    I suggest to use a text field instead and use CSS to hide it.

    You can then populate a value for this field using the method explained here:
    http://www.appnitro.com/forums/topic/dynamic-content-php?replies=25


    MachForm Founder

    Posted 14 years ago #

RSS feed for this topic

Reply