i have a dropdown i want to show an input or hide it depending of the selection of dropdown please help me with full code
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
![feature fixed.png](https://static.wixstatic.com/media/3bfa8a_f845e1016b8a49758acdd6edd6610c3b~mv2.png/v1/crop/x_0,y_2,w_852,h_508/fill/w_104,h_62,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/feature%20fixed.png)
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
@Ravand Bajlory
Thank you so much!!!
It's solved!!!
I forgot to check there...
you are great!!!
The spelling is also correct.
I already try it. but not working.
import wixData from 'wix-data'; export function dropdown1_change(event) { if($w("#dropdown1").value === '紹介') { //replace 'legal' $w("#input1").show(); } else { $w("#input1").hide(); } }
I have same question.
my code is:
import wixData from 'wix-data'; export function myDropDown_change(event) { if($w("#dropdown1").value === '紹介') { //replace 'legal' $w("#input1").show(); } else { $w("#input1").hide(); } }
It's not working.
it's in the lightbox, is there anything else I need to do?
Hi Ravand,
Here is a site that I created that has the functionality you are wanting: https://muniturbusiness.wixsite.com/mysite-19
If user selects any other category than "Legal" in the dropdown, they will see formA. If user selects "Legal", they will see formB.
I can't give you the full code you need but I can give you a starter. You should be able to adopt it to fit your needs.
import wixData from 'wix-data'; export function myDropDown_change(event) { if($w("#myDropDown").value === 'Legal') { //replace 'legal' $w("#myInput").show(); } else { $w("#myInput").hide(); } }