How do you make a checkbox automatically check and then be able to uncheck it if you need to?
{!if document.do_on_form_open == "" then
document.checkbox = "value"
//Other default values here
document.do_on_form_open = "It is open"
endif}
So do I put this in the translation or in a MEL statement
In the white space off to the side. The form will try to execute the statement every time the box is checked or unchecked, or when the form is opened. But by adding a value to document.do_on_form_open at the end, it blocks the MEL from actually changing any of the default values after it has run the first time time. If you had other items you wanted to have a default value just include them in this statement. With this method you could also add an action button to restore a whole set of default values with the simple statement {document.do_on_form_open = ""}
Thanks works great
Sorry one more quesiton. It will not let me uncheck it. How do i fix that.
You probably just have to declare the other document variable, add this above the other part
{!document.do_on_form_open}
This isn't working for me for some reason. Does anybody have a sample form of the checkbox that auto-checks when the form opens? Thanks!
