length() & trim() function giving error

lakshmi_p
Kilo Explorer

Hi everyone,

I am using length() & trim() in client script, but receiving this error. Please suggest how to work on this.

find_real_file.png

find_real_file.png

Regards,

Lakshmi Patel

1 ACCEPTED SOLUTION

zac
Mega Contributor

Would this work?



if(answer != null && answer.length == 15)



Good luck!


View solution in original post

11 REPLIES 11

The code seems like your not calling method of include script.



Print the answer in alert


It seems it is null or undefined is coming that is why error showing


Hi Harish,



No its not working.



Regards


what is giving alert(answer);


zac
Mega Contributor

Would this work?



if(answer != null && answer.length == 15)



Good luck!


Hi Zac,



Its working... Thank you !!!



Regards,


Lakshmi