Page 1 of 1

Checkbox Help

Posted: Mon Apr 28, 2025 2:13 pm
by bjlolmaugh
Hello all.

I need help with the Checkboxes.
I have added some to a form and when I use the Built-In Form Processor and set the email message to Plain Text "Values submitted from website form", the email arrives with the response for only the boxes that were checked.

I have the Checkbox data set as follows ... Name=foster_screen, Value = YES.

Here is the example of the incoming email thru Plain Text:
Foster Home : YES
Offsite Adoptions : YES
Delivery : YES


That is working properly.


However, if I want to set up the email message to Rich Text and configure the email data as follows:

Foster/Screening: $foster_screen
Transportation: $transport
Fundraising: $fundraising
Clerical Office Help: $clerical
Off-Site Adoptions: $offsite_adoptions
Special Events: $special_events
Pick Up / Deliver: $delivery


The resulting email still shows the correct response for the boxes I checked off, but it also shows the script value for the boxes that were not checked off.

Here is that example:
Foster/Screening: YES
Transportation: YES
Fundraising: $fundraising
Clerical Office Help: $clerical
Off-Site Adoptions: $offsite_adoptions
Special Events: YES
Pick Up / Deliver: $delivery


How do I resolve this? I really like the functionality of the Rich Text format over the Plain Text format.

Thank you in advance.

Re: Checkbox Help

Posted: Mon Apr 28, 2025 2:29 pm
by Pablo
I'm sorry, there is no standard solution for this. This will require a custom script.

The issue is that if the value is empty (unchecked) then the browser will not sent the value to the server. So, the variable will not exist in that case.

For the plain text, the script will replace the empty values, but this feature does not exist for rich text.

Re: Checkbox Help

Posted: Mon Apr 28, 2025 2:33 pm
by bjlolmaugh
Pablo wrote: Mon Apr 28, 2025 2:29 pm I'm sorry, there is no standard solution for this. This will require a custom script.

The issue is that if the value is empty (unchecked) then the browser will not sent the value to the server. So, the variable will not exist in that case.

For the plain text, the script will replace the empty values, but this feature does not exist for rich text.
Thank you.
And Thank you for all you do.