Form processing results

Issues related to forms.
Post Reply
cwlutterloh
 
 
Posts: 3
Joined: Mon Jun 24, 2019 6:56 pm

Form processing results

Post by cwlutterloh » Mon Jun 24, 2019 7:20 pm

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?

User avatar
Pablo
 
Posts: 18680
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Form processing results

Post by Pablo » Mon Jun 24, 2019 7:55 pm

I'm sorry, there is no standard solutions for that, it will require a custom script.

cwlutterloh
 
 
Posts: 3
Joined: Mon Jun 24, 2019 6:56 pm

Re: Form processing results

Post by cwlutterloh » Mon Jun 24, 2019 8:13 pm

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?

cwlutterloh
 
 
Posts: 3
Joined: Mon Jun 24, 2019 6:56 pm

Re: Form processing results

Post by cwlutterloh » Mon Jun 24, 2019 8:28 pm

Or is there a way to do it the other way around have it display all the "Checked" checkboxes in the results?

User avatar
Pablo
 
Posts: 18680
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Form processing results

Post by Pablo » Mon Jun 24, 2019 9:03 pm

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.

GrahamW
 
 
Posts: 264
Joined: Sat Jul 08, 2017 5:02 am

Re: Form processing results

Post by GrahamW » Tue Jun 25, 2019 12:06 am

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

GrahamW
 
 
Posts: 264
Joined: Sat Jul 08, 2017 5:02 am

Re: Form processing results

Post by GrahamW » Wed Jun 26, 2019 2:31 am

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

Post Reply