K
kdenham@infocomm.org
Guest
In our version (11.0), the Textbox field in the forms module allows you to designate a placeholder in the Edit options. There is also a predefined value option but it sounds like you prefer placeholder functionality rather than a predefined value. If for some reason you must use Predefined value rather than Placeholder, you should be able to find your element with Javascript using a query selector, which works on most modern browsers: var myInput = document.querySelectorAll("input[value='Predefined Name']")[0]; Then you can register something like an onFocus event which would remove the existing value (make sure you only remove the existing value if it matches your predefined value), you'd annoy users if you wiped the field every time they focused it. That said, I highly recommend using the existing Placeholder option if you have it in the editor, otherwise you could also add your placeholder on pageload: myInput.placeholder = "Your new placeholder";
Continue reading...
Continue reading...