Combobox Condition
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
Re: Combobox Condition
Correct, disabling will be the same as if the editboxes weren't there in the first place, so won't be included in the email or autoresponder.
Make sure you account for every case.
E.g. if the user fills in 4, then changes their mind and clicks 2, you have to disable 3 and 4.
Then of course if the user clicks 4 again you will have to enable 3 and 4. You see what I mean.
Etc, etc.
DOH!, I've just realised it's in Australia? By using Postcode I assumed it was in the UK so used the UK format.
Make sure you account for every case.
E.g. if the user fills in 4, then changes their mind and clicks 2, you have to disable 3 and 4.
Then of course if the user clicks 4 again you will have to enable 3 and 4. You see what I mean.
Etc, etc.
DOH!, I've just realised it's in Australia? By using Postcode I assumed it was in the UK so used the UK format.
Re: Combobox Condition
Thanks wwbman. When disabling will the title of the fields still be there like the following? My main aim if the user only select 1, the non of the other details like below should display in their email at all. I am using HTML format in my autoresponder. Thanks wwbmanWWBman wrote: ↑Fri Oct 12, 2018 9:35 pm Correct, disabling will be the same as if the editboxes weren't there in the first place, so won't be included in the email or autoresponder.
Make sure you account for every case.
E.g. if the user fills in 4, then changes their mind and clicks 2, you have to disable 3 and 4.
Then of course if the user clicks 4 again you will have to enable 3 and 4. You see what I mean.
Etc, etc.
DOH!, I've just realised it's in Australia? By using Postcode I assumed it was in the UK so used the UK format.
Name 2:
DOB 2: DD - MM - YYYY
Age 2:
Age Group 2: Select Camper 2 Age Group
Fees 2:
Allergies and Medical Conditions 2:
Re: Combobox Condition
That’s right. None of the details will show.
If you want to try it just download my test project.
If you want to try it just download my test project.
Re: Combobox Condition
The titles will only show for the campers that are filled in.
The link is the same as before: http://www.mediafire.com/file/as7v9n29p ... s.wbs/file
The link is the same as before: http://www.mediafire.com/file/as7v9n29p ... s.wbs/file
Re: Combobox Condition
I inserted the function you mentioned as below for Camper2NameWWBman wrote: ↑Sat Oct 13, 2018 8:02 am The titles will only show for the campers that are filled in.
The link is the same as before: http://www.mediafire.com/file/as7v9n29p ... s.wbs/file
function clearbox2()
{
document.getElementById('Fee2').value = "";
document.getElementById('Camper2Group').value = "";
document.getElementById('Camper2Age').value = "";
document.getElementById('Camper2conditions').value = "";
document.getElementById('Camper2Name').disabled = true;
Camper2Group.selectedIndex = 0;
Camper2DOBYear.selectedIndex = 0;
Camper2DOBMonth.selectedIndex = 0;
Camper2DOBDate.selectedIndex = 0;
}
The result i got in the email is as below. Any idea what have I done wrong>:(
Name 2: $Camper2Name
DOB 2: DD - MM - YYYY
Age 2:
Age Group 2: Select Camper 2 Age Group
Re: Combobox Condition
You'll need to disable all elements in the group.
Have you looked at my test project?
I have tested it and it works.
BTW, you don't need the selectedIndex = 0; option, that was for a Combobox.
Have you looked at my test project?
I have tested it and it works.
BTW, you don't need the selectedIndex = 0; option, that was for a Combobox.
Re: Combobox Condition
Thanks Wwbman.
The following is what the message I have in my autoresponder. I have 10 campers details in this message. As you can see I have say 2 campers details below as an example. If you register only for 1 camper, you will still receive all the following format, but only with camper 1 details. What I want to achieve is if the user only register for 1 camper, then the camper 2 should not be included in the autoresponder message. I looked through your test project and it doesn't seems like what I am looking for. Hope you understand what I wanted to achieve and you may possibly have the solution for me? Thanks again WWBman
Hi $ContactName.
Thank you for registering the 2019 English Church Family Camp
Your reference number is: $reference
You have submitted below information:
Total Number of Campers in this registration you have submitted is: $HowManyCampers
Camper Details
Name 1: $Camper1Name
DOB 1: $Camper1DOBDate - $Camper1DOBMonth - $Camper1DOBYear
Age 1: $Camper1Age
Age Group 1: $Camper1Group
Fees 1: $Fee1
Allergies and Medical Conditions 1: $Camper1conditions
Name 2: $Camper2Name
DOB 2: $Camper2DOBDate - $Camper2DOBMonth - $Camper2DOBYear
Age 2: $Camper2Age
Age Group 2: $Camper2Group
Fees 2: $Fee2
Allergies and Medical Conditions 2: $Camper2conditions
Re: Combobox Condition
I know exactly what you want, my test project does that.
Have you downloaded the project?
You can just preview it and you'll see that e.g. if you select just one item then the details for just that one item will be sent, nothing else.
The details sent include the titles + entered data.
Please compare the events and javascript with what you have, especially the clear..() routines.
Have you downloaded the project?
You can just preview it and you'll see that e.g. if you select just one item then the details for just that one item will be sent, nothing else.
The details sent include the titles + entered data.
Please compare the events and javascript with what you have, especially the clear..() routines.
Re: Combobox Condition
Thanks WWBMan. Just want to clarify. I don't want anything at all that are not selected by the user to appear in the email. For example. If the user select only 1, i don't want any of the following info related to the 2 to appear in the email at all. Because I am using HTML as email format, I just can't find a way not to have the following information sent to the user even though they only selected 1.WWBman wrote: ↑Sun Oct 14, 2018 7:40 am I know exactly what you want, my test project does that.
Have you downloaded the project?
You can just preview it and you'll see that e.g. if you select just one item then the details for just that one item will be sent, nothing else.
The details sent include the titles + entered data.
Please compare the events and javascript with what you have, especially the clear..() routines.
Name 2:
DOB 2:
Age 2:
Age Group 2: Select Camper 2 Age Group
Fees 2:
Allergies and Medical Conditions 2:
As mentioned early, presently I configure my autoresponder as
Reference number: $reference
Number of Campers: $HowManyCampers
Camper Details
Name 1: $Camper1Name
DOB 1: $Camper1DOBDate - $Camper1DOBMonth - $Camper1DOBYear
Age 1: $Camper1Age
Age Group 1: $Camper1Group
Fees 1: $Fee1
Allergies and Medical Conditions 1: $Camper1conditions
Name 2: $Camper2Name
DOB 2: $Camper2DOBDate - $Camper2DOBMonth - $Camper2DOBYear
Age 2: $Camper2Age
Age Group 2: $Camper2Group
Fees 2: $Fee2
Allergies and Medical Conditions 2: $Camper2conditions
Re: Combobox Condition
I just don't want the title unrelated to the user selection to appear at all.petejos wrote: ↑Sun Oct 14, 2018 8:00 amThanks WWBMan. Just want to clarify. I don't want anything at all that are not selected by the user to appear in the email. For example. If the user select only 1, i don't want any of the following info related to the 2 to appear in the email at all. Because I am using HTML as email format, I just can't find a way not to have the following information sent to the user even though they only selected 1.WWBman wrote: ↑Sun Oct 14, 2018 7:40 am I know exactly what you want, my test project does that.
Have you downloaded the project?
You can just preview it and you'll see that e.g. if you select just one item then the details for just that one item will be sent, nothing else.
The details sent include the titles + entered data.
Please compare the events and javascript with what you have, especially the clear..() routines.
Name 2:
DOB 2:
Age 2:
Age Group 2: Select Camper 2 Age Group
Fees 2:
Allergies and Medical Conditions 2:
As mentioned early, presently I configure my autoresponder as
Reference number: $reference
Number of Campers: $HowManyCampers
Camper Details
Name 1: $Camper1Name
DOB 1: $Camper1DOBDate - $Camper1DOBMonth - $Camper1DOBYear
Age 1: $Camper1Age
Age Group 1: $Camper1Group
Fees 1: $Fee1
Allergies and Medical Conditions 1: $Camper1conditions
Name 2: $Camper2Name
DOB 2: $Camper2DOBDate - $Camper2DOBMonth - $Camper2DOBYear
Age 2: $Camper2Age
Age Group 2: $Camper2Group
Fees 2: $Fee2
Allergies and Medical Conditions 2: $Camper2conditions
Re: Combobox Condition
And that is what the test project does.I just don't want the title unrelated to the user selection to appear at all.
Please test it.
Re: Combobox Condition
Thanks WWBman. I tested and it doesn't work the way I wanted. check out below
http://www.goec.com.au/goec2/page4.php
Re: Combobox Condition
You haven't redownloaded the project.
That one is a very old version.
That one is a very old version.
Re: Combobox Condition
Thanks WWBman. I downloaded a new one and noticed the different in the script. However, I tested and it still doesn't work. Please have a look.
http://www.goec.com.au/goec2/page4.php
Re: Combobox Condition
Can you share the test project you have just used (or email me it)?
Did you change anything in it?
I entered data in the first box and this was blank in the email so something must have changed!
Did you change anything in it?
I entered data in the first box and this was blank in the email so something must have changed!
Re: Combobox Condition
Re: Combobox Condition
You should have it from the reply to the test run.
Or just copy the .wbs file to the server and I’ll download it from there.
Or just copy the .wbs file to the server and I’ll download it from there.
Re: Combobox Condition
Your test project uses the built-in PHP Form Processor Script so the file extension must be php not html.
It also should have a Success page and an Error page.
The message in General/Message can be just plain text.
The Auto Responder doesn't need the message formatted as you have. Just use a plain text message. The titles and details filled in will automatically be produced by the form processor.
The Auto Responder email format can be plain text.
It also should have a Success page and an Error page.
The message in General/Message can be just plain text.
The Auto Responder doesn't need the message formatted as you have. Just use a plain text message. The titles and details filled in will automatically be produced by the form processor.
The Auto Responder email format can be plain text.
Re: Combobox Condition
Thanks WWBman. If in plain text, then i won't get a nice and neat looking email to the user?WWBman wrote: ↑Sun Oct 14, 2018 9:52 pm Your test project uses the built-in PHP Form Processor Script so the file extension must be php not html.
It also should have a Success page and an Error page.
The message in General/Message can be just plain text.
The Auto Responder doesn't need the message formatted as you have. Just use a plain text message. The titles and details filled in will automatically be produced by the form processor.
The Auto Responder email format can be plain text.
Re: Combobox Condition
Try plain text first and then see what you get.
This has nothing to do with the basic issue of not showing the entries when not filled in.
This has nothing to do with the basic issue of not showing the entries when not filled in.
Re: Combobox Condition
Tested your suggestion with plain text and it works. Below is what I received. However, how to hide the "Buttons"? Also, how can i have a space better indexedibox1, 2 and 3? or how can I achieve what I wanted like in the rich text format I have in my current form design?
IndexEditbox1 : Peter 1
IndexEditbox2 : Peter 2
IndexEditbox3 : Peter 3
Buttons :
Email : petejos@hotmail.com
Re: Combobox Condition
Sorry, I can't think of a way to hide the buttons or format the space better, perhaps someone else can.
Re: Combobox Condition
You could use the DBTS Form processor extension which is very good.
It has many options but most defaults should be fine and it doesn't include the button in its output.
I've never used the Auto Responder part of it but it should be OK.
It has many options but most defaults should be fine and it doesn't include the button in its output.
I've never used the Auto Responder part of it but it should be OK.
Re: Combobox Condition
Thanks WWBman. what is DBTS and is it in the WWB builder?
Re: Combobox Condition
It's a normal extension (DBTS Form Processor). You can install it from the Extension Manager in WWB.
I've just tested it using the same events and javascript and it works fine.
And the auto responder works fine as well with it.
If you want to see what the output looks like you can download the DBTS version here:
http://www.mediafire.com/file/pq5s33mf8 ... n.wbs/file
Or the DBTS help gives a good idea what it looks like.
I've just tested it using the same events and javascript and it works fine.
And the auto responder works fine as well with it.
If you want to see what the output looks like you can download the DBTS version here:
http://www.mediafire.com/file/pq5s33mf8 ... n.wbs/file
Or the DBTS help gives a good idea what it looks like.
Re: Combobox Condition
Thanks. I will give it a try.WWBman wrote: ↑Mon Oct 15, 2018 12:06 pm It's a normal extension (DBTS Form Processor). You can install it from the Extension Manager in WWB.
I've just tested it using the same events and javascript and it works fine.
And the auto responder works fine as well with it.
If you want to see what the output looks like you can download the DBTS version here:
http://www.mediafire.com/file/pq5s33mf8 ... n.wbs/file
Or the DBTS help gives a good idea what it looks like.
Re: Combobox Condition
BTW, after testing it I forgot to make the editboxes invisible in the Object Manager on load.
Download file amended.
Download file amended.