Expand my Community achievements bar.

Don't we have equivalent code in JavaScript?

Avatar

Level 8

Hello

I want to figure out that the given text field (say, my_text_field_1) has some value in it / is user entered any value in it / is it holding any value in it?

I found the below piece of code in FormCal, but, am looking the same purpose solving code in JavaScript,

var Cmsg

if (HasValue(MY_FORM.P1.MydetailsSub.CoName)) then

CoName = ""

else

CoName = "- CoName\u000a"

Cmsg = CoName

endif

1) Pls. let me know the EQUAVALENT code in JavaScript

2) Also pls. let me know Wht does it mean of "- CoName\u000a"  here?

Thank you

1 Reply