added a g_form info message and client scipt started working?!

cchacha
Mega Guru

Hi All,

 

My client script was working fine until it stopped working, I dont know if its versions of instances.

Anyway this is the beginning of my script.

function onLoad() {
 
    checkUserGroupMembershipBySysId();
 
Until I added g_form.addInfoMessage("twt")  on the line before this function, the script wouldn't work.
 
What is going on here, is this because of version instance, possible ordering issue?
 
I have removed the info message and the script is still working now.. what happened why is the script working now..was it cache? I didnt clear my cache.
 
Should I just revise the client script and make an acl instead to be sure this doesnt happen again
 
Thanks,
Carol
 
 
5 REPLIES 5

Simon Christens
Mega Sage

Could you check the browser console for any errors when loading the page ?

You could also try and use alert(); instead to see if that works instead.

You can also move the addInfoMessage to the response method and see if that changes anything.

To me no issues seems to be present so I suspect that something else might cause it somehow.