MODX itself doesn't strip any HTML or JS code from a page.
Your JS is calling a function that seems not to exist and most of the fields of the Form are hidden and have no labels. When you do a "View Source" on the page, what do you see?
BTW, I think you want this in the JS if you don't want to call that function, rather than HTML comment tags:
/*
function check_cdfs(form) {
return true;
}
*/
Never mind -- I found the problem. If I put the <form> tags outside the <table> it works better. Thank you for the feedback!
-
☆ A M B ☆
- 24,524 Posts
Technically CSS isn't supposed to be in the page body.
You can use a very simple snippet instead, with $modx->regClientCSS(...) and $modx->regClientStartupScript(...), which will load your CSS (style block or link to .css file) and your javascript in the head. $modx->regClientScript(...) will load javascript at the end of the page, just before the closing body tag.