Form Select Field custom icon

Hi,

Has anyone utilised custom code to change the arrow icon within a form select field to a custom icon?

Any help appreciated.

Thanks


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

1 Like

Hi is anyone able to help?

Thanks,

Scott

@scottalexwatson I guess is it possible, but your link is not working. And which kind of icon?

Hi Matthias,

Apologies I never added a link. Here it is below.

Attached is an idea of how I would like the form select field to look.

https://preview.webflow.com/preview/eg-filter-test?utm_medium=preview_link&utm_source=dashboard&utm_content=eg-filter-test&preview=0e77cada7b9712d33a1b4121f2e5f378&mode=preview

@scottalexwatson I tried it yesterday to get a solution for your issue. And yes its possible!

<style>
.w-select {
/* resetting default form style*/
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  border: none;
}

.select-wrapper::before {
  background-image: url(https://uploads-ssl.webflow.com/your-icon.png);
  background-size: 20px 20px;
  height: 20px;
  width: 20px;
  display: inline-block;
  content:"";
  position: absolute;
  right: 15px;
  top: 10px;
}

</style>
6 Likes

And you have to wrap your “Select Field” with a wrapper.
image

Hi Matthias,

This is perfect thanks so much for your help!

Cheers

Scott

I’ve discovered a handy workaround: simply add a background image to the field, adjust its size and position, and it will overwrite the previously generated icon.

1 Like