2026 Quform V2 WordPress: Minimum Responses

Home Forums Quform WordPress 2026 Quform V2 WordPress: Minimum Responses

This topic is: not resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38007
    MediaServices
    Participant

    1. We have several Quform plugins and I wanted to find out how to purchase support for a specific Quform. Is there a way to renew the support for a specific Quform if I have the Purchase code?

    2. We have a new form for voting https://charlestonwomen.com/sheshines-voting/ and want to make sure at least 8 votes are entered. I used the code we had from one of our other websites from https://support.themecatcher.net/forums/reply/27903/ and I cannot get it to work, I think the problem is an incorrect value in add_filter where I’ve used ‘quform_element_valid-12_6’.

    add_filter('quform_element_valid-12_6', function ($valid, $value, $el) {
    $votes = 0;

    $ignoreElements = array(
    'quform_12_65', // first name
    'quform_12_66', // email
    );

    foreach ($el->getForm()->getRecursiveIterator() as $element) {
    if (!$element instanceof Quform_Element_Text) {
    continue; // Ignore non-text fields
    }

    if (in_array($element->getName(), $ignoreElements)) {
    continue; // Ignore non-vote fields
    }

    if (!$element->isEmpty()) {
    $votes++;
    }
    }

    if ($votes < 8) {
    $el->addError('At least 8 votes are required');
    $valid = false;
    }

    return $valid;
    }, 10, 3);

    How can I fix the code?

    #38008
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    • This reply was modified 10 hours, 51 minutes ago by Ally.
    #38010
    MediaServices
    Participant

    1. Thanks for the tip about renewing support.

    2. To get the code working, I added a checkbox section with a faux I’m not a Robot:

    I am Human *

    [ ] No [ ] Maybe [ ] Yes

    The following code is outputted, so I tried this in the add_filter, but it’s not picking it up. What’d I do wrong?

    add_filter('quform_element_valid_12_79', function ($valid, $value, $el)

    Code from the new Checkboxes at the bottom of the form at https://charlestonwomen.com/sheshines-voting/

    <div class="quform-element quform-element-checkbox quform-element-12_79 quform-cf quform-element-required">
    	<div class="quform-spacer">
    	<div class="quform-label quform-label-12_79">
    		<label class="quform-label-text" id="quform_12_79_575b36_label">
    		I am Human<span class="quform-required">
    		*</span>
    		</label>
    	</div>
    		<div class="quform-inner quform-inner-checkbox quform-inner-12_79">
    			<div class="quform-input quform-input-checkbox quform-input-12_79 quform-cf">
    				<div class="quform-options quform-cf quform-options-columns quform-3-columns quform-responsive-columns-phone-landscape quform-options-simple" role="group" aria-labelledby="quform_12_79_575b36_label">
    					<div class="quform-option">
    						<input type="checkbox" name="quform_12_79[]" id="quform_12_79_575b36_1" class="quform-field quform-field-checkbox quform-field-12_79 quform-field-12_79_1" value="No">
    						<label for="quform_12_79_575b36_1" class="quform-option-label quform-option-label-12_79_1">
    						<span class="quform-option-text">
    						No</span>
    						</label>
    					</div>
    					<div class="quform-option">
    						<input type="checkbox" name="quform_12_79[]" id="quform_12_79_575b36_2" class="quform-field quform-field-checkbox quform-field-12_79 quform-field-12_79_2" value="Maybe">
    						<label for="quform_12_79_575b36_2" class="quform-option-label quform-option-label-12_79_2">
    						<span class="quform-option-text">
    						Maybe</span>
    						</label>
    					</div>
    					<div class="quform-option">
    						<input type="checkbox" name="quform_12_79[]" id="quform_12_79_575b36_3" class="quform-field quform-field-checkbox quform-field-12_79 quform-field-12_79_3" value="Yes">
    						<label for="quform_12_79_575b36_3" class="quform-option-label quform-option-label-12_79_3">
    						<span class="quform-option-text">
    						Yes</span>
    						</label>
    					</div>
    				</div>
    			</div>
    		</div>
    	</div>
    </div>
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy