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

Multiple Choice defaults selection


  1. dsemick
    Member

    I have a multiple choice field with 6 items in it. I made this an "Admin only" area because I want to use it to track the progress of an entry by the admin, but not have the user see the selectors when he is filling out the form. I have also chosen one item to be selected by default. Unfortunately, this default selection does not make an entry into the database until the admin clicks on the "edit entry" button.

    Is there a way to have the default choice recorded when the form is submitted?

    Posted 13 years ago #
  2. yuniar

    "Admin only" fields won't be displayed to your users indeed. Thus it won't be submitted.
    I suggest to do this instead. Remove the "admin only" property of the field and hide the multiple choice using CSS code instead.

    So, let say your multiple choice is being enclosed by "li_4" tag, you can hide it using this CSS code:

    #li_4{
      display: none;
    }

    Your users won't see it and the default value will be submitted.


    MachForm Founder

    Posted 13 years ago #
  3. dsemick
    Member

    Hmm..that makes sense to me but the code doesn't seem to work. I entered it as you suggest and changed it to be viewed by non-admin:

    #li_23{
    display: none;
    }

    The field is visible to all.

    Posted 13 years ago #
  4. yuniar

    Try to delete your browser cache and then refresh your form.
    If the problem persist, can you let me know the URL to your form please?


    MachForm Founder

    Posted 13 years ago #

RSS feed for this topic

Reply