WordPress.org

Ready to get started?Download WordPress

Forums

Easy Contact Forms
Form / Field (?) Disabled on Submit (2 posts)

  1. HarroH
    Member
    Posted 1 year ago #

    Hi All,

    Could you please inform me what you exactly change to the form or fields when the field is submitted? The problem is that in IE8 and lower the input fields get disabled but this also screws up the text of the thank you message. So currently when the form is submitted the success message is gray with a embossed effect, which is not what I definied in the CSS but in IE8 this is overruled by the HTML tags.

    Thanks in advance.

    http://wordpress.org/extend/plugins/easy-contact-forms/

  2. HarroH
    Member
    Posted 1 year ago #

    Seem to have found the solution to my own problem. I have to change the plugin JavaScript however, so now I cannot update any more. Would be nice see something like this in the next update as it doesn't really make sense to keep the form disabled when the success message is begin displayed.

    function success() {
    	if (form.offsetHeight > 0){
    		form.style.height = form.offsetHeight+'px';
    	}
    	while (form.hasChildNodes()){
    			form.removeChild(form.firstChild);
    	}
    	ufoForms.enableInput(formid)
    	if (resp.text) {
    		var div = document.createElement('div');
    		div.className = resp.className;
    		div.innerHTML = resp.text;
    		form.appendChild(div);
    
    		form.disabled = false; // this line has been added
    
    		ufoForms.doFade(form, 0, 1, 1000, redirect);
    	}
    	else {
    		redirect();
    	}
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.