Forum Replies Created
- AuthorPosts
dubiousa
Participant+1 here
dubiousa
ParticipantThanks! Works!
dubiousa
ParticipantHi 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.htmlThanks!
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 4 years, 2 months ago by
dubiousa.
dubiousa
ParticipantWhy 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.
dubiousa
ParticipantOK 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!- This reply was modified 4 years, 2 months ago by
- AuthorPosts