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

Can I post hidden value?


  1. nicklya
    Member

    Can I post hidden value? <input type="hidden" value="xxxx">

    Posted 15 years ago #
  2. yuniar

    It won't be possible to add hidden value.

    However, with some CSS trick you can do the same thing. Simply add a text field and set the default value as your hidden value.

    Then edit your CSS to hide that text field.
    Something like:

    #li_4{
     display: none;
    }

    it will hide your text field, but still submits under the hood, just as hidden value.


    MachForm Founder

    Posted 15 years ago #
  3. intellicents
    Member

    Maybe it's just me, but I thought using the "Field Visible to" radio button allowed only the admin or everyone to see the field. When I log off, I can't see the admin only fields I've created.

    Posted 15 years ago #
  4. yuniar

    "Admin only" fields can only be seen by admin indeed.
    When you log off, you won't be recognized as admin, thus those fields aren't being shown.


    MachForm Founder

    Posted 15 years ago #
  5. theresqshop
    Member

    Is it possible to get the admin only fields to be sent with the form when submitted via email?

    For example. I've created a quiz question with radio buttons next to the answers;

    1. What color is the sky
    a. blue
    b. green
    c. red
    d. black

    Admin only field: Answer: a. blue

    If the Admin only field would submit with the form, then I could tell if they got the answer right at a glance.

    Posted 15 years ago #
  6. redityo

    Hi,

    You can add "template field variable" to e-mail content. You will see "template field variable" list by expanding "mail options" and click "template variables" link on info section. By default machform only add this text to mail content :

    {entry_data}

    it means all entry data without "admin only fields". But if you have this details :

    1. element_1 = common field
    2. element_2 = admin only field

    then you should replace email content with :

    {element_1}
    {element_2}

    MachForm Support

    Posted 15 years ago #

RSS feed for this topic

Reply