Hi all,
I am showing a video clip on my page and want users to click on a button to show or hide the transcript of the clip. If they press the button, it will sohw the transcript otherwise it will not.
I have tried the following code but not sure what I am doing wrong:
export function button1_click(event, $w) {
$w( ‘#text13’ ).show();
}
Thank you
try to use -
export function button1_click(event) { // I have removed “$w”
$w( ’ #text13 ’ ).show();
}
Thank you! I have tried that one too and does not work. It comes up with a parsing error (line 3 is where the curly brackets are closing)
Error parsing web-module ‘public/pages/masterPage.js’: Unexpected token (3:0) while parsing file: public/pages/masterPage.js
@ydimitriadi27 Will please share your whole page code?
TY @rinshulgoel I have not added any more code. Maybe I need to code it differently. I am trying to add a button, so if viewers click, it will display a text box, else it stays hidden. I tried If-else as well but not very successful.