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!
![](https://static.wixstatic.com/media/a27d24_0cd520bc2ac446d6b17a989eb4d8c362~mv2.png/v1/fill/w_980,h_430,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/a27d24_0cd520bc2ac446d6b17a989eb4d8c362~mv2.png)
Hello, 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! Hope this helps! Best, Mustafa