Have a small problem with a cms whereby when i try to insert default text into an input text field using the “value” attribute it gets deleted. I was thinking to force insert the text in there when the page load with javascript but not sure exactly how…
<p><input name=“vericode” id=“vericode” value=“This text doesn’t display!!” type=“text” onclick=“value=‘’”/></p>
From a brief look at MODx, it appears that it performs automatic validation of form values.
This indicates that your form values are clearing themself as a part of the way that MODx works.
I strongly suggest that you learn more about properly controlling MODx form validation, and selectively disabling that validation for things like the part you’re having trouble with, from people who know how MODx works.