Error When entering a form from "Forms Management" screen

kj100 21 Oct, 2009
I've created several forms that appear to work OK but when I select the form for editing from the "Forms Management" screen I get warning/error message (a large paragraph of commands with a red cross against one line). The line highlighted by the cross is:

main attributes theitem.getLast().injectHTML('', 'after'); theitem.getLast().setStyle('display', 'none'); theitem.getLast().addEvent('click', function(e) { new Event(e).stop(); this.getParent().remove(); if(($chk($E('input[name^=to_]', droparea)) || $chk($E('input[name^=dto_]', droparea))) && 


I can provide a screenshot if needed.

Anyone any idea what is causing this and should I be concerned?
GreyHead 21 Oct, 2009
Hi kj100,

That's a chunk of Javascript showing up in the admin page where it shouldn't. (I think it may be from the Forms Wizard.)

It's probably a sign of either a JavaScritp error or some unclosed tags or broken code somewhere in the page. The most likely place is in your form code but it's not the only possiblity.

Bob
kj100 21 Oct, 2009
Bob

I don't think it is in my code as it happens when there is none.

If I create a new simple form with a single text element on it in the wizard, save the form, open from Forms Management screen and the screeds of JavaScript are there.

I have noticed that it only happens about 80-90% of the time. Sometimes when you open a form the screen looks normal.

Kevin
GreyHead 21 Oct, 2009
Hi Kevin,

If the site is on-line and it's OK with you please PM or E-mail me a SuperAdmin login and the URL and I'll take a quick look.

Bob
kj100 23 Oct, 2009
Bob

Thanks very much for youir help, this looks like a WebKit issue. I can reproduce it consistantly with Safari and Chrome but it is fine in Firefox and IE (all on Windows)

Kevin
This topic is locked and no more replies can be posted.