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

Default Value not functioning when field visible set to Admin only (version 3.2)


  1. Steve1951
    Member

    I have a text field with the default value set to "2012". When the field is visible to everyone, the field is properly populated with data 2012. When visibility is limited to Admin Only, the field remains blank. Is this the way it is designed to work or is this a bug?

    What I am attempting to accomplish is this:
    I need to have a field set to a specific value that cannot be changed when a user fills out the form. This field will be used to filter the entries for export to an excel file. I can't just filter by date because the year field is not the same as a calendar year. Any suggestions?

    Posted 11 years ago #
  2. yuniar

    The default value won't be populated for "admin only" field indeed. This is by design.
    However, there is a simple solution to do what you need.

    Disable the "admin only" option for that field and set the "Custom CSS Class" property of that field to "hidden" instead (without the quotes).
    This would hide the field from the form and yet the default value will still being populated.


    MachForm Founder

    Posted 11 years ago #
  3. Steve1951
    Member

    Thanks - That's exactly what I needed.

    Posted 11 years ago #

RSS feed for this topic

Reply