PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

How to adjust form entries

  1. ax10
    Member

    Hi,

    I have a form which has a drop-down select box for the user to pick (and a load of checkboxes to tick).

    I've noticed when I view my Entries, its the text given for the "value" of the chosen option that being displayed - wanted to know can I make it display the "option" text instead?

    eg.
    Select box (option text : value)
    Product ABC : 1/100
    Product XYZ : 2/345
    Service ABC : 4/60
    Service XYZ : 3/25

    If someone selects "Service ABC" on the form - when I view my entry I see that they selected "4/60". Anyway that I can change it to show me the label text - "Service ABC"?

    I know I can change the value to be more descriptive but some of these options are quite long and might change and I am also linking to this form from several other pages via query string and passing in "value" so it can be auto-selected.

    Thanks

    Posted 12 years ago on Wednesday August 8, 2012 | Permalink
  2. The following code snippet should do the trick for you.
    Just make sure to replace the form ID and field ID in the code to match yours http://pastie.org/4445686

    Posted 12 years ago on Thursday August 9, 2012 | Permalink
  3. ax10
    Member

    Wow fantastic - works a treat for select (drop-down) boxes.

    Any idea how to tweak it for checkboxes / radio buttons please

    Cheers

    Posted 12 years ago on Monday August 13, 2012 | Permalink
  4. ax10
    Member

    Bump!
    Sorry anyone got any clues on how to tweak this for checkboxes?
    Cheers

    Posted 12 years ago on Monday August 20, 2012 | Permalink
  5. Hi, ax10,

    I have worked up some code which handles checkboxes. Take a look at this: http://pastie.org/4570041 . I have added comments in the code explaining what I am doing.

    Posted 12 years ago on Wednesday August 22, 2012 | Permalink
  6. ax10
    Member

    Thank you very much!

    Posted 12 years ago on Monday September 3, 2012 | Permalink
  7. Thanks for the update.

    Posted 12 years ago on Monday September 3, 2012 | Permalink

This topic has been resolved and has been closed to new replies.