I followed the instructions for this topic on the support site (https://support.wix.com/en/article/wix-code-tutorial-creating-a-show-more-link) and for some reason, the shortTextLength constraint seems to be ignored in the code, so the full text field is being displayed along with the ‘read more’ link. I have the shortTextLength = 150 but that’s just flat out being ignored as displayed on the attached screencaps.
I’m also getting a parsing error on the link/button properties onClick action, saying that ‘export’ may only appear at the top level, but it already is as far as I can tell.
If anyone’s got any thoughts or ideas or have run into this before, your input is greatly appreciated!
As i can only see part of your code, i see missing brackets - after Line 25 - :
before export function button2_click, you are closing the dataset onReady function - Line 25 - , and the $w.onReady function is not closed - should ends with }); - . So it runs it as the function ( export function button2_click ) inside the onReady, which caused the error!
I’m having trouble following your instructions as I’m not even a novice with this - I basically don’t know what I’m doing. Would you mind spelling it out for me - such as what kind of bracket to place in which line, or what needs to be removed from which line?
It sounded like you were saying I should remove the “});” from line 25 and move it to the end? Nothing changed when I did that - I was still getting the same error…