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 15, 2018 at 1:43 pm

OK that’s a different approach that could work but there are a few items that need fixing:

["4", "5", "6", "9"].forEach(hideQuestion);,
you’ll need to remove the comma at the end of the line.

find( "[id^=\'ee-reg-form-qstn-grp-veterans-pricing-\']" ).RemoveAttr("required", false).attr("required", true);

can be changed to:

find( "[id^=\'ee-reg-form-qstn-grp-veterans-pricing-\']" ).prop('required',true);

Do NOT follow this link or you will be banned from the site!