Page 1 of 1

Form processing results

Posted: Mon Jun 24, 2019 7:20 pm
by cwlutterloh
I have a form built, it includes Editbox, comb box, check box, and radio buttons.

I have the results processing..

Name: $name <-- Edit box (working)
Phone: $phone <-- Edit box (working)
Burger type: $burgertype <-- Combo box (working)
Bread: $bread <-- Radio button (working)
Topping: $Bacon <--Checkbox
Topping: $Cheese <--Checkbox
Topping: $Onion <--Checkbox
Side item: $sideitem <-- Combo box (working)

The check boxes are where I'm having trouble. I don't want it to appear in the results if the checkbox wasn't checked.
Currently the results are coming back like this...

Name: Joe<-- Edit box (working)
Phone: 1234 <-- Edit box (working)
Burger type: Turkey Burger <-- Combo box (working)
Bread: white bun <-- Radio button (working)
Topping: Bacon <-- selected checkbox result looks correct
Topping: $Cheese <-- Did not select checkbox, results show variable (I want this whole line hidden if not selected in form)
Topping: $Onion <-- Did not select checkbox, results show variable (I want this whole line hidden if not selected in form)

Is there a way to exclude the unchecked checkboxes from the results?

Re: Form processing results

Posted: Mon Jun 24, 2019 7:55 pm
by Pablo
I'm sorry, there is no standard solutions for that, it will require a custom script.

Re: Form processing results

Posted: Mon Jun 24, 2019 8:13 pm
by cwlutterloh
What if I change the line to...

Toppings: $bacon, $onion, $cheese

Is there a symbol I can add to exclude the result like "#$bacon" if left unchecked?

Re: Form processing results

Posted: Mon Jun 24, 2019 8:28 pm
by cwlutterloh
Or is there a way to do it the other way around have it display all the "Checked" checkboxes in the results?

Re: Form processing results

Posted: Mon Jun 24, 2019 9:03 pm
by Pablo
I'm sorry, there is no standard option for that. if you want to filter results then you will need to write code to do that.

Re: Form processing results

Posted: Tue Jun 25, 2019 12:06 am
by GrahamW
Hi cwlutterloh

I maybe able to assist you with this issue. I have a script I wrote some years ago that allows the value of a check box to be transfered over to a text area.
So when you get the results in your email it will only send what is in the textarea.
If you visit my website https://www.grahamscomputers.net and use my contact page I can then communicate with you and and get a demo up and running for you to look at.

Graham

Re: Form processing results

Posted: Wed Jun 26, 2019 2:31 am
by GrahamW
Here is a link for a demo if you want to test it out.

https://shop.grahamscomputers.net/demo/ ... index.html

It can also be turned on so when you select a check box it will show below it what is going into the text area but I have got that set to hidden for now.

Make sure you use a valid email because it will send the results to that email address. You will/should get 2 emails as one will be the auto responder that the client would normally get as well

Graham