The only alternative I can think of, is using events as described by WWBmanWould you be able to suggest me an alternative solutions for now
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
Re: Combobox Condition
I am using combo boxes. What would you recommend.WWBman wrote: ↑Mon Sep 17, 2018 12:23 pm It works with Radio Buttons but not (currently) for Comboboxes.
E.g. http://www.mediafire.com/file/as7v9n29p ... s.wbs/file
@petejos, are you using Radio Buttons or Comboboxes?
Re: Combobox Condition
As Pablo says you can only have one action per choice in a Combobox, but in the next update (planned for later this year) you will be able to use multiple conditions with the same value.
Have you downloaded my test project? It uses Radio Buttons and seems to do what you want.
http://www.mediafire.com/file/as7v9n29p ... s.wbs/file
Have you downloaded my test project? It uses Radio Buttons and seems to do what you want.
http://www.mediafire.com/file/as7v9n29p ... s.wbs/file
Re: Combobox Condition
Yeap, I downloaded your project. Thanks. I guess I just have to use that method for now. Thanks.WWBman wrote: ↑Tue Sep 18, 2018 7:41 am As Pablo says you can only have one action per choice in a Combobox, but in the next update (planned for later this year) you will be able to use multiple conditions with the same value.
Have you downloaded my test project? It uses Radio Buttons and seems to do what you want.
http://www.mediafire.com/file/as7v9n29p ... s.wbs/file
Re: Combobox Condition
It's just occurred to me that when you click e.g. 2 after clicking 3 (and filling in 3) then although the editbox will be hidden the entry for 3 will still be sent in the email so I've added a bit of Javascript (in Page HTML) to clear the relevant boxes.
So I would download the project again to get the improved version.
So I would download the project again to get the improved version.
Re: Combobox Condition
I think I found a solution for now. I insert the editboxes in layout grids. Meaning if I need to have 5 choice, 1st layout grid will have 1 edit box, 2nd layout grid will be 2 edit boxes, etc. until 5 layout grids are created. Then then send the condition in combobox.WWBman wrote: ↑Tue Sep 18, 2018 9:03 am It's just occurred to me that when you click e.g. 2 after clicking 3 (and filling in 3) then although the editbox will be hidden the entry for 3 will still be sent in the email so I've added a bit of Javascript (in Page HTML) to clear the relevant boxes.
So I would download the project again to get the improved version.
www.goec.com.au/goec2/page3.php
I tested and it work for me so far. Any comment?
Re: Combobox Condition
Did you test the scenario I mentioned in my previous post?
I.e. the user fills in e.g. 5 boxes and then changes their mind and changes to e.g. 3 boxes.
Were boxes 4 and 5 excluded in the email?
I.e. the user fills in e.g. 5 boxes and then changes their mind and changes to e.g. 3 boxes.
Were boxes 4 and 5 excluded in the email?
Re: Combobox Condition
Not yet tested yours. However my desired design is still combo box.
Re: Combobox Condition
Re: Combobox Condition
Hi wwbman, you are right. They are not excluded in the email if they change the choices.
Re: Combobox Condition
hi wwbman
How does this javascript works?
clearbox2();
The name of my editbox is "camper1name"
How does this javascript works?
clearbox2();
The name of my editbox is "camper1name"
Re: Combobox Condition
btw, I just tested and your javascript does not work. What went wrong? any idea?
Re: Combobox Condition
My test version does work. What are you seeing that doesn't work?
You'll find the clearboxn(); routines in Page HTML under Before </body>.
They simply clear the relevant editbox.
Just replace my editbox names e.g. indexEditbox1 with yours e.g. camper1name
You'll find the clearboxn(); routines in Page HTML under Before </body>.
They simply clear the relevant editbox.
Just replace my editbox names e.g. indexEditbox1 with yours e.g. camper1name
Re: Combobox Condition
When i tried yr version, firstly i choose 3 then enter details then i chooee 1 and submit. The result i received are still 3.
Re: Combobox Condition
In a previous post I mentioned this.
Did you download the new version?
Did you download the new version?
Re: Combobox Condition
Sorry but it works for me.
Can you share your .wbs file to see if I can spot any problem?
Can you share your .wbs file to see if I can spot any problem?
Re: Combobox Condition
My apology. I made some errors and now it is working.
btw, I need to unchecked a box when a different selection is made. For example, when a selection is made, i need one of the checked box in my form to be unchecked.
Re: Combobox Condition
I think you can uncheck a box with e.g. nameofRadioButton.checked = false;
Re: Combobox Condition
Try:
document.getElementById('Combobox1').options.length = 0;
or just:
Combobox1.options.length = 0;
document.getElementById('Combobox1').options.length = 0;
or just:
Combobox1.options.length = 0;
Re: Combobox Condition
Try:
Combobox1.reset();
Combobox1.reset();
Re: Combobox Condition
As you probably gathered I'm not a Javascript expert!!
If the user is selecting one item then try:
Combobox1.selectedIndex = 0;
If the user is selecting one item then try:
Combobox1.selectedIndex = 0;
Re: Combobox Condition
Hi WWBman, i would like to know how did you hide your editboxes on loading?petejos wrote: ↑Tue Sep 18, 2018 12:59 amI am using combo boxes. What would you recommend.WWBman wrote: ↑Mon Sep 17, 2018 12:23 pm It works with Radio Buttons but not (currently) for Comboboxes.
E.g. http://www.mediafire.com/file/as7v9n29p ... s.wbs/file
@petejos, are you using Radio Buttons or Comboboxes?
Re: Combobox Condition
In the Object Manager untick Visible.
Re: Combobox Condition
Did you set the onclick event to Show?
See my test project.
See my test project.
Re: Combobox Condition
Does it work as a standard form instead of a layout grid form?
If so then I have no idea what the problem is.
Have you double checked all the id names in the events etc.?
If so then I have no idea what the problem is.
Have you double checked all the id names in the events etc.?
Re: Combobox Condition
I've just tested it with a Layout Grid form and it seems to work.
Re: Combobox Condition
I guess you've seen Pablo's reply here:
viewtopic.php?f=5&t=82640&sid=78c960302 ... e9d75bf6ba
FWIW: I've updated my test project to reflect this.
viewtopic.php?f=5&t=82640&sid=78c960302 ... e9d75bf6ba
FWIW: I've updated my test project to reflect this.
Re: Combobox Condition
New update WWB 14.2 released:
"It is now possible to use multiple (form) conditions with the same value for "equal to (choice)/not equal to (choice)", so you can trigger different actions for the same value."
"It is now possible to use multiple (form) conditions with the same value for "equal to (choice)/not equal to (choice)", so you can trigger different actions for the same value."
Re: Combobox Condition
Re: Combobox Condition
Looks good, well done.
Re: Combobox Condition
hey wwbman,
any idea how to resolve the following issue of mine.
as you are aware my form has selection from 1 to 10. In my autoresponder I also have 1 to 10. However, if the user only select 3, how can I create the autoresponder in such a way that the it will only send 3 to the user who registered? thanks.
any idea how to resolve the following issue of mine.
as you are aware my form has selection from 1 to 10. In my autoresponder I also have 1 to 10. However, if the user only select 3, how can I create the autoresponder in such a way that the it will only send 3 to the user who registered? thanks.
Re: Combobox Condition
Isn't this the same issue I mentioned in a previous post?
"It's just occurred to me that when you click e.g. 2 after clicking 3 (and filling in 3) then although the editbox will be hidden the entry for 3 will still be sent in the email so I've added a bit of Javascript (in Page HTML) to clear the relevant boxes.
So I would download the project again to get the improved version."
I noticed that events with more than one call to a javascript each containing return true; only performs the first one.
So in this case there should be only one javascript in each event which clears all the relevant boxes.
This is done in the test project.
"It's just occurred to me that when you click e.g. 2 after clicking 3 (and filling in 3) then although the editbox will be hidden the entry for 3 will still be sent in the email so I've added a bit of Javascript (in Page HTML) to clear the relevant boxes.
So I would download the project again to get the improved version."
I noticed that events with more than one call to a javascript each containing return true; only performs the first one.
So in this case there should be only one javascript in each event which clears all the relevant boxes.
This is done in the test project.
Re: Combobox Condition
Thanks wwbman This is not my question. Your javascript works for me and it works perfect. Can you try filling up my form and just select either 1 or 2. When you submit and you received a confirmation then you will understand better my question. Thanks.WWBman wrote: ↑Fri Oct 12, 2018 8:05 am Isn't this the same issue I mentioned in a previous post?
"It's just occurred to me that when you click e.g. 2 after clicking 3 (and filling in 3) then although the editbox will be hidden the entry for 3 will still be sent in the email so I've added a bit of Javascript (in Page HTML) to clear the relevant boxes.
So I would download the project again to get the improved version."
I noticed that events with more than one call to a javascript each containing return true; only performs the first one.
So in this case there should be only one javascript in each event which clears all the relevant boxes.
This is done in the test project.
http://www.goec.com.au/goec2/camprego2019.php
Re: Combobox Condition
Ah, you mean the list of IDs not just the contents.
You will need the following:
document.getElementById('indexEditbox1').disabled = true;
But then there's the problem if the user changes their mind - so you'll have to enable them when they click another button!
e.g. document.getElementById('indexEditbox1').disabled = false;
BTW, it wouldn't allow me to enter a valid postcode but it allowed 11111
You will need the following:
document.getElementById('indexEditbox1').disabled = true;
But then there's the problem if the user changes their mind - so you'll have to enable them when they click another button!
e.g. document.getElementById('indexEditbox1').disabled = false;
BTW, it wouldn't allow me to enter a valid postcode but it allowed 11111
Re: Combobox Condition
Thanks. By using the script you suggested will the irrelevant IDs which are not in use will not display in the email send to the user?WWBman wrote: ↑Fri Oct 12, 2018 10:56 am Ah, you mean the list of IDs not just the contents.
You will need the following:
document.getElementById('indexEditbox1').disabled = true;
But then there's the problem if the user changes their mind - so you'll have to enable them when they click another button!
e.g. document.getElementById('indexEditbox1').disabled = false;
BTW, it wouldn't allow me to enter a valid postcode but it allowed 11111
When you try to enter postcode, what are you trying to enter? Special characters? Because I set the field to only numbers. Thanks wwbman.
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