Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Change jQuery in Vanilla JavaScript please #32787
    dubiousa
    Participant

    +1 here

    in reply to: Server settings smtp-check #32786
    dubiousa
    Participant

    Thanks! Works!

    in reply to: SUCCESS message, Conditional Select option #32783
    dubiousa
    Participant

    Hi Ally, yes you are right. Sadly i have started with the index.html you provide and as NOT knowing the “quform-elements” are being used for this i deleted the div 😀
    Perhaps a comment:
    // this div is used for ajax success output
    would be nice in the provided index.html

    Thanks!

    Also, do not want to create yet another thread, but for everybody looking for CONDITIONAL logic, here is a simple VANILLA js for hiding options in select in condition from another select:

    
    document.addEventListener('input', function (event) {
    	if (event.target.id !== 'firstSelectId') return;
    	let firstSelectVariable = event.target.value;
    	console.log(firstSelectVariable);
    
    	var optionsSecondSelect = document.getElementsByClassName('SecondSelectClassName');
    	for (var i = 0; i < optionsSecondSelect.length; i++) {
            if (optionsSecondSelect[i].className.includes(firstSelectVariable)) { 
                  //console.log("I see the dead people");
    			  optionsSecondSelect[i].style.display = "block";
    		}
    		else { 
    			  optionsSecondSelect[i].style.display = "none";
    		}
    	}
    }, false);
    

    For this to work the options in second select have to have a
    class=”SecondSelectClassName firstSelectVariable”
    with “SecondSelectClassName” static
    and “firstSelectVariable” to be filtered after!

    • This reply was modified 8 months ago by dubiousa.
    in reply to: SUCCESS message, Conditional Select option #32773
    dubiousa
    Participant

    Why is this not in the documentation?

    “Ok, if you put a div that wraps all form fields and give it the class class quform-elements the success message will be inserted before this. To get the field errors to show you’ll need to have a wrapper around each field (e.g. div) with the class element-wrapper.”

    Solves problem. Hour search in internetz.

    in reply to: Server settings smtp-check #32771
    dubiousa
    Participant

    OK i’ve hacked the PHPMailer in line 2059 to
    if ($this->SMTPAutoTLS && $sslext && ‘ssl’ !== $secure && $this->smtp->getServerExt(‘STARTTLS’)) {
    $tls = false;
    }
    and it works.
    But i would rather prefer a cleaner solution. Open for ideas! Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy