Checkbox values

  • Thread starter Thread starter RGDave
  • Start date Start date
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.
 
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' ;
 
Back
Top