Hello Everyone,
I hope what I am asking is simple. I have a function that hides an input if a certain choice is selected. If the input is hidden is there a way for me to assign it a value like 1 or 0 automatically. Below is my working code that hides the input field. Just not sure what to add to give it a value of 1 or 0 if it's hidden. I want it to be 1 or 0 after the form is submitted so it has a value and isn't just blank in my database. export function dropdown3_change(event) { let selectedIndex = $w("#dropdown3").selectedIndex; if (selectedIndex === 1) { $w("#input1").hide() } else { $w("#input1").show() } } Thank you! Any help would be greatly appreciated!
Hi, this is a forum for Wix Forum application matters. Please try finding your answer here: https://support.wix.com/en/ or reach out to support@wix.com.