Forum Replies Created
- AuthorPosts
- March 19, 2019 at 4:13 pm in reply to: Optional required fields: choosing at least one required field from two #28824
szipet
ParticipantThank You very much Ally,
awesome support! 🙂
The custom code did the trick.Just a quick question. I use a child theme, and which is the better approach to add these custom codes: put them into the child theme’s functions.php or create the new plugin quform-custom-code.php? Or is there no difference between them?
Thank You!
Peterszipet
ParticipantHi Ally,
the “Scroll offset”-method worked fine!
Thank You again! 🙂
szipet
ParticipantThank You very much!
szipet
ParticipantWell, i figured it out: just added a “.quform” selector before:
.quform .quform-option-label span.quform-option-icon {
float: left !important;
}And with option-text set to “display:flex” all text-lines are aligned left (and not just the first 2 lines).
szipet
ParticipantHi Ally,
thank you very much!Unfortunately the 3rd problem is not yet solved.
In the browser’s inspector i can set manually the option-text to display:block and the option-icon to float:left, and it is working there, but if i add this to the custom css, it is override by the quform.css as there is a same line with “float: none !important”..quform-option-label span.quform-option-icon {
float: left !important;
}Any workaround?
szipet
ParticipantHi,
i managed to rewrite this code for quform2, but how can i remove the red border-color also when clicking inside the field? (i use the “Simple” style)<script>
jQuery(document).ready(function ($) {
$(‘.quform-field-text’).click(function () {
$(this).closest(‘.quform-spacer’).find(‘.quform-error’).slideUp();
});
});
</script>
Thx!szipet
ParticipantI got it: as every form has a unique ID, i just have to put the codes multiple times in the function.php with different error message.
- AuthorPosts