Where is the problem? my code did not work
export function checkboxGroup1_click(event) {
if ($w(“#checkboxGroup1”).value == [“Value1, “Value2”]) {
$w(”#group4").expand();
}
Where is the problem? my code did not work
export function checkboxGroup1_click(event) {
if ($w(“#checkboxGroup1”).value == [“Value1, “Value2”]) {
$w(”#group4").expand();
}
https://www.wix.com/corvid/forum/community-discussion/multiple-checkbox-s-submit-to-single-database-field-solved
https://www.youtube.com/watch?v=Usom90Gi6ls
Maybe instead of this:
["Value1, "Value2"] ///missing a " after Value 1
Try this:
["Value1", "Value2"]
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).