Hot answers tagged

3

Since the shuffled markup is the root of the problem, one might follow examples from the Craft control panel source that serialize the form's data and submit via AJAX (and often $.proxy() to help with scope). This is a lot of work, however, for minor stylistic gain. If the problem is limited to presentation, the solution should be too. @narration_sd helped ...


3

I finally figured this out. I was actually close. Here's the HTML that I use <div class="hud-wrapper hidden"> <div id="generate-pdf-form" class="form meta"> <form> {% import "_includes/forms" as forms %} {{ forms.lightswitchField({ class: 'docraptorize-prod-lightswitch', ...


Only top voted, non community-wiki answers of a minimum length are eligible