I am embedding a form in some i-framed sites and notice that when an incomplete form is submitted, a slick little javascript error box pops up to tell the user how many problems were found with their submission. This is great BUT can I change the dialogue that references the calling site?
Right now, it says "The page at http://www.myserver.ca says:" I would like to either remove that line or modify it with a variable or otherwise customize it?
Is this possible and if so, where do I look for the source?
I'm guessing you're using Firefox. That text is part of the base code of the browser, and is, in part, a security feature so that you know where a prompt is coming from. This protects you from iframe tricks.
In any case, if you'd like to change that text, you'll need to ask on the Firefox forums where they will tell you that is can be changed, but not easily, and not on a website by website basis. *shrug* Though I could be wrong.
<script type="text/javascript"> wFORMS.behaviors.validation.onFail = function(bInstance) { var m = wFORMS.behaviors.validation.messages.notification; var firstErrorId = null; var c = 0; for (var id in bInstance.elementsInError) { c++; if(!firstErrorId) firstErrorId = id; } m = m.replace('%%', c);
No problem, just place this into your custom code block of your form. In the formbuilder interface you can access this under 'advanced' after clicking the root element ('title') for the form.