Checkbox values

R

RGDave

Need help with Checkbox form values.
If the name of the checkbox is "Add_Name" when someone hits submit, the
email shows Add_Name: "Yes", if the checkbox was checked, but nothing if
unchecked.

Is there anyway to have it show "No" if the checkbox is unchecked?

Thanks.
 
T

Trevor Lawrence

Web Site http://trevorl.mvps.org
RGDave said:
Need help with Checkbox form values.
If the name of the checkbox is "Add_Name" when someone hits submit, the
email shows Add_Name: "Yes", if the checkbox was checked, but nothing if
unchecked.

Is there anyway to have it show "No" if the checkbox is unchecked?

Thanks.

How are you generating the email.

If you use JS, you could write
If (Add_Name != "Yes") Add_Name = 'No' ;

or since Add_Name appears to be blank, this may work:
If (!Add_Name) Add_Name = 'No' ;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top