<script>
/**
* Do not remove this section; it allows our team to troubleshoot and track feature adoption.
* TS:0002-08-042
*/
lp.jQuery(document).ready(function($) {
//Change #lp-pom-box-01, etc. for the IDs of the boxes where you want the form fields to display.
var boxes = ["#lp-pom-box-01",
"#lp-pom-box-02",
"#lp-pom-box-03",
"#lp-pom-box-04"];
$('.lp-pom-form .lp-pom-form-field')
.each(function(i, field) {
$(field)
.offset($(boxes[i]).offset())
$(this).children().width($(boxes[i]).width()-16)
});
});
</script>
Last active
April 22, 2021 14:05
-
-
Save victorzen/9a0294e0e65c03e4b23183e0b58d2118 to your computer and use it in GitHub Desktop.
Allows you to place form fields anywhere on the page
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I like to be able to see the box in the editor, so I am moving it to the back and making it invisible when rendered: