Where is the problem? my code did not work
export function checkboxGroup1_click(event) { if ($w("#checkboxGroup1").value == ["Value1, "Value2"]) { $w("#group4").expand(); }
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
In addition to Shan's answer, you should use onChange() instead of onClick() from 2 reasons:
onClick() fires before the value changes. So it won't act as expected.
Due to a known bug, onClick() triggers twice instead of one time only*
(*in your specific code this bug won't have any effect though- Who cares if group4 gets 2 times an order to expand, it will expand anyway. but the first reason is enough).
Maybe instead of this:
["Value1, "Value2"] ///missing a " after Value 1
Try this:
["Value1", "Value2"]
https://www.wix.com/corvid/forum/community-discussion/multiple-checkbox-s-submit-to-single-database-field-solved
https://www.youtube.com/watch?v=Usom90Gi6ls