Tabbed table question- SOLVED

I have created a table with tabs, and the code has works for the most part. The code instructs the tabs (buttons) to change the slides of the slideshow below them. They all work, except when I added the new tab- the blue one with the black image. I added a 5th slide to the slideshow and added a line of code to include the new tab and slide.

The first four lines of code still work great. The last line is the new line, and it does not seem to work. Clicking the new button does nothing.

Any ideas how to fix this?
#tabbedtable #corvid code #table #buttons #slideshow

NOTE: The bottom line of code does in fact have an underscore, it has just been cut off in the image- “videobutton_click(event)”. Thanks!


UPDATE: Solution was to make sure the overlaying image on the last tab had no link action in editor. Once it was set to ‘none’ (apparently this was not the default so it had to be done manually), we were able to create the onclick action for both the tab and the image. Also, the ‘onclick’ function in the properties tab must be utilized.

It doesn’t look like you have a valid function definition.

export function videobutton click(event {$w('#slideshow1').changeSlide(4);}

should be something like:

export function videobutton_click(event {$w('#slideshow1').changeSlide(4);} 

Note the ‘_’ between videobutton and click. Function names should be a single string not multiple strings separated by a space ;-). Make sure the property panel binding is correct also.
Cheers

Hi Steven,

Thanks for your reply. I wish the solution was this simple! The underscore is definitely in the code, it just appears to have gotten cut off in the image (note the ‘g’ in ‘changeSlide’ is also cut off). Sorry, that’s my poor screenshot-ting.


The properties ID is also correct.
So this still remains unsolved! Any other ideas? :slight_smile:

Thanks so much!