Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Dec 04, 2009 @ 12:15
    Tim
    0

    Hidden Fields

    Hi,

    Another question. On our sites, we track the referral source of a visitor (natural search, PPC, affiliate link etc), and we'd normally store this data with the form submission. Is there a way to have hidden form fields that populate from coookies or sessions?

    Or would I be looking at writing a custom field type to add this kind of functionality?

  • Soeren Sprogoe 575 posts 259 karma points
    Dec 04, 2009 @ 13:43
    Soeren Sprogoe
    2

    Not 100% sure if this answers your question, but here goes:

    I always use Autoform/Doc2Form for building forms, and often use this trick for submitting hidden data.Create a regular text field you want to store your hidden data in, and then hide it via stylesheet. Use a bit of clientside javascript for entering your values into this field, and remember that this javascript can be generated by a server side XSLT macro.

    Hope this helps you out.

    Best regards,
    Soeren Sprogoe

Please Sign in or register to post replies

Write your reply to:

Draft