Hello
If “sanded and painted” is choice - then required and show “RAL Color field” else hidden (See image below)
How do I do it
Hello
If “sanded and painted” is choice - then required and show “RAL Color field” else hidden (See image below)
How do I do it
Share a project link perhaps?
Which page is this form on if you don’t mind?
at the bottom of “3D PRINTING SERVICE” page
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>
Thanks - Work perfect
Hi @AlexManyeki, I’ve used this code to hide/show a collection and it worked. The only problem is that my collection has pagination with 3 pages of items, and with this code it’s showing only the first pagination page.
Perhaps you could help me? How can I adapt this code to show all other pages within the pagination?
Published link: https://select-fieldd.webflow.io/
Thanks in advance!
You’ll need to share your site as described here Posting Guidelines for the Code Help Category