This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Pre-fill fields with session variables or other


  1. anton7
    Member

    Hello

    Is it possible to pre-fill fields with session variables or other - if so, how?

    Example: I have a shopping cart where on product landing pages they can ask a question - would like to pre-populate machform field with product name (comes from session) variable.

    Super thank you

    Anthony

    Posted 11 years ago #
  2. yuniar

    You can populate the fields using URL parameters:
    http://www.appnitro.com/doc-url-parameters

    Or if you want to use session, try this modification:
    http://www.appnitro.com/forums/topic/capturing-_server-variables-to-form-elements?replies=2

    and use $_SESSION instead of $_SERVER mentioned there.


    MachForm Founder

    Posted 11 years ago #

RSS feed for this topic

Reply