cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Javascript code disappears after activating the form

Former Member
0 Likes
4,885

Not sure what's wong, but as soon as I activate the form all the javascript disappears. It still works when the form is executed and displayed, all events work fine. But when I go back in livecycle designer to see the code, there is just no code at all. I have shutdown SAP GUI, my computer, restarted everything but cannot get around this problem.

Any ideas? google didn't return anything as well.

View Entire Topic
rakesh_m2
Contributor
0 Likes

Is javascript editor disappearing or complete code? Can you please try by creating a simple form with only field and place simple script on that field like this.rawValue = '5' and see, if it still disappears.

--

Rakesh

Former Member
0 Likes

The javacode window is there, it has that one liner in it that tells which event I am coding for.

Any javascript statement would work, including the one you suggested (this.rawValue = '5') but it simply does not show up in the code part after I activate the form. The code works though, it will put '5' on the text box.

Former Member
0 Likes

Hi Frozen Monkey,

Can you please check if you have put your Javascript in correspond event?

There is a event drop down for you edit each of the event behavior; I would advice do not use the all event as some times lifecycle designer will save your code to elsewhere ; select the event u want to fire the code and do your coding.

Another stupid mistake i always did is, i edit my code in display mode and yet i still can activate my code, ended up all my code gone.

Hope this helps.

regards,

Xiang Li