Streaming live at 10am (PST)

Select field choice to hidden and show


#1

Hello :slight_smile:

If “sanded and painted” is choice - then required and show “RAL Color field” else hidden (See image below)

How do I do it

image


#2

Share a project link perhaps?


#3

Of course :slight_smile:

https://preview.webflow.com/preview/nicolajbroe?utm_source=nicolajbroe&preview=e5527f517e910baceeebedc7af58053a


#5

Which page is this form on if you don’t mind?


#6

at the bottom of “3D PRINTING SERVICE” page


#7

Here you go. Put this in the footer code section of this page. You will need to set the RAL COLOR field to display:none initially.

<script>
	$(document).ready(function(){
      $('#Surface').on('change', function() {
          if( $(this).val() === 'sanded and painted' ) {
              $('#Ral-Color').fadeIn();
              $('#Ral-Color').attr('required','required');
          } else {
              $('#Ral-Color').fadeOut();
              $('#Ral-Color').removeAttr('required');
          }
      });
	});
</script>

#8

Thanks - Work perfect :slight_smile: