This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

Color swatch option in a drop down field.


  1. jambog
    Member

    Hi, I am trying to add a color swatch to a drop down menu so that customers can select a color for an item. Attached is a link to a test form as well as some screen shots of what I am trying to do. As you can see on the form I can add a color swatch to a Multiple Choice field choices using HTML code and it renders just fine. When I try to do the same with the Drop Down field choices it doesn't render.

    Here is a link to the form I am testing
    Color Test for Drop Down field

    Here is the code I am trying to render in HTML in the "Choices" text field.

    <font style="color: red; background-color: red;">....</font>Red (this is just using HTML background color against text. I made the font color and background color the same so you can't see the text "....")

    <img src="http://50.31.146.124/images/swatches/7601.png" alt="Cobalt">Cobalt (this is linking to an image swatch on my server)

    The HTML code works just fine with the Multiple Choice field choices, but not with the Drop Down field. While the Multiple choice is a work around for now, I would prefer to have the color swatch in the drop down field on my form.

    Here is a screenshot if it will be of any help. Thank you.

    Posted 10 years ago #
  2. yuniar

    Sorry, I'm afraid it won't be possible to have any HTML code for the dropdown field. MachForm is using standard HTML dropdown field and it doesn't support any HTML code for the options.


    MachForm Founder

    Posted 10 years ago #

RSS feed for this topic

Reply