Checkbox: How to auto-populate when checked / remove info when unchecked.
How do I set up the check-boxes to auto-populate fields when checked, then remove the info from the field when unchecked. I am a complete beginner when it comes to javascript. This is what I have soo far based on looking at online forums.
Basically the checkbox represents a product. If the person is interested in choosing this product, I want them to click the checkbox so that info goes to the next page for the final form. If they accidentally click the checkbox, I want the information to be removed.
if (getField("Box1").value!="Yes")
this.getField("profile").value = this.getField("Landmark").value;
if (getField("Box1").value!="No")
this.getField("profile").value = " ".value;
I inserted screenshots below. The one checkbox that says "Landmark" is the Landmark Field. The second screenshot, I want that information to go to "Product Name" which is the profile field.
I only did this one check box, but plan on having all the selections, in screenshot one, have check boxes that go to the profile field.
Any suggestions would be greatly appreciated.


