dataset image not linking to on_click.

Hi.

I have a website where a user must pick one size: small, medium, large. (On click, any one of these buttons enables the “next” button )
And in the second step they must choose one service: delivery, setup, removal.

I’ve got the first “Size” section to work just fine.

When a user clicks the ‘small’ button, the image populates in the object, and the ‘next’ button is enabled. This brings you to the “service” options, where there must be some sort of error.

I’ve duplicated the code and swapped in the new buttons/IDs so it should work the same for the “Services”. But the image doesn’t populate from my dataset, and the “next” button doesn’t enable…

Correct/Working code is here:


export function smallButton_click(event, $w) {
selectSize(sizesMap.small);
}
export function mediumButton_click(event, $w) {
selectSize(sizesMap.medium);
}
export function largeButton_click(event, $w) {
selectSize(sizesMap.large);
}
function selectSize(size) {
selectedSize = size;

$w('#size').src = size.mainMedia;

$w('#nextButton').enable();

Shouldn’t I be able to copy+paste this code, and drop in all of my new button names and serviceMap and it will link???

I dont think I’m creating the serviceMap correctly.

Any help would be greatly appreciated! Ty!

@yevheniias I’ve reached out to Wix/Corvid a few times and I havent gotten a response. Is there no Help Desk/Customer support?