Support

Home Forums Event Espresso Premium Add jquery to inline php script to hide questions for certain tickets Reply To: Add jquery to inline php script to hide questions for certain tickets

Reply To: Add jquery to inline php script to hide questions for certain tickets

Author Replies
Josh # Posted on May 16, 2018 at 2:57 pm

This will make that last question required:

function requireQuestion(item, index) {
        jQuery( ".spco-attendee-panel-dv.spco-attendee-ticket-" + item + " .ee-reg-qstn-15" ).prop("required", true);
    };
    ["14", "13", "12", "11"].forEach(requireQuestion);
Do NOT follow this link or you will be banned from the site!