Conditions

Issues related to forms.
Post Reply
GPK5050
 
 
Posts: 44
Joined: Thu Apr 26, 2018 4:03 pm

Conditions

Post by GPK5050 »

Hi...

Reaching out again for some guidance.

I have a form with multiple fields. The two fields involved in this question are combo boxes with the first having a list of countries and the second having a list of states and provinces. What I would like to happen is when someone chooses either USA or Canada in the country list, the combo box with the states and provinces appears. And when the user chooses any other county option, the combo box with the states and provinces disappears.

I have tried many combinations of "equal to" or 'equal to (choice)" to show the states combo box and then "not equal to" or "no equal to (choice)" to hide the states combo box, but no combination seems to get it to work.

Any suggestions as to which values I should use to make this idea work?

Thank you!

Greg
User avatar
wwonderfull
 
 
Posts: 1603
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Conditions

Post by wwonderfull »

If you can share a demo project or a screen shot based on what you want I may be able to help you out. I am good with forms.
User avatar
BaconFries
 
 
Posts: 5974
Joined: Thu Aug 16, 2007 7:32 pm

Re: Conditions

Post by BaconFries »

The logic behind this doesn't make sense. If you only want the second combobox to appear when either usa or canada is selected from the first then clicking on any other country will do nothing. Generally in a form the user moves forward in the selection of inputs if they use the tab function not back. I can also see why you would need what you are asking but only if the user makes a wrong selection originally.
I take it that you would only want the second combobox to only display the state/city/provinces depending on there selection of usa or canada otherwise the selection will be mixed of each and a bit tedious to have to scroll through to find the required. In this instance it would probably be best to populate the second combobox from a database so that only the the states/city/provinces is displayed on selection. Just my two pennies/cents on this and no offence is intended on what you asked.
GPK5050
 
 
Posts: 44
Joined: Thu Apr 26, 2018 4:03 pm

Re: Conditions

Post by GPK5050 »

Hi..

Here the link to the test page:

http://www.carpenters55th.fun/registration4.php

I still have not been able to find the right combination of commands to get it to work like I would like it to... to have the "State/Province" box to appear when USA or Canada has been selected in the "Country" box and then disappear when any other country has been selected.

Thanks!

Greg
WWBman
 
 
Posts: 914
Joined: Fri Jan 08, 2010 6:10 pm

Re: Conditions

Post by WWBman »

Hi GPK5050,
I thought I'd have a go at your issue using Pablo's example.
If you haven't solved it yet you can download my project which I think does what you want from:
https://www.mediafire.com/file/esw93unm ... s.wbs/file
If USA or Canada is not selected the states and provinces box goes blank.
WWBman
 
 
Posts: 914
Joined: Fri Jan 08, 2010 6:10 pm

Re: Conditions

Post by WWBman »

FWIW:
Amended to show states/provinces only when USA/Canada selected.
User avatar
wwonderfull
 
 
Posts: 1603
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Conditions

Post by wwonderfull »

WWBman wrote: Tue May 03, 2022 2:06 pm FWIW:
Amended to show states/provinces only when USA/Canada selected.
Don't know about him, but I will try and learn also. Thank You WWBman for the effort. Really appreciate it. :D
having download problem btw :|
WWBman
 
 
Posts: 914
Joined: Fri Jan 08, 2010 6:10 pm

Re: Conditions

Post by WWBman »

wwonderfull wrote: Tue May 03, 2022 2:30 pm
WWBman wrote: Tue May 03, 2022 2:06 pm FWIW:
Amended to show states/provinces only when USA/Canada selected.
Don't know about him, but I will try and learn also. Thank You WWBman for the effort. Really appreciate it. :D
having download problem btw :|
What's the problem?
I've noticed recently that Mediafire sometimes thinks .wbs files are executables and the downloader has to be given a nudge to complete.
User avatar
wwonderfull
 
 
Posts: 1603
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Conditions

Post by wwonderfull »

What's the problem?
I've noticed recently that Mediafire sometimes thinks .wbs files are executables and the downloader has to be given a nudge to complete.
As I can see the download does not start. I use 7zip to archive files you can use it to archive files and then upload I guess.
You can share the file using a temp file sharing platform like https://www.file.io/
Last edited by wwonderfull on Tue May 03, 2022 3:00 pm, edited 1 time in total.
WWBman
 
 
Posts: 914
Joined: Fri Jan 08, 2010 6:10 pm

Re: Conditions

Post by WWBman »

wwonderfull wrote: Tue May 03, 2022 2:57 pm
What's the problem?
I've noticed recently that Mediafire sometimes thinks .wbs files are executables and the downloader has to be given a nudge to complete.
As I can see the download does not start.
You can share the file using a temp file sharing platform like https://www.file.io/
I've just downloaded it again with no problem.
User avatar
wwonderfull
 
 
Posts: 1603
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Conditions

Post by wwonderfull »

I use 5 browsers.I thought adblocker or something but None of them worked :|
My bad luck I guess any way thanks. :)
Last edited by wwonderfull on Tue May 03, 2022 3:01 pm, edited 1 time in total.
WWBman
 
 
Posts: 914
Joined: Fri Jan 08, 2010 6:10 pm

Re: Conditions

Post by WWBman »

If you are still having problems then it's here as well.
https://file.io/MUO28mLtWwIR

Whoops!! Looks like file.io only allows one download then it's deleted!
Last edited by WWBman on Tue May 03, 2022 3:02 pm, edited 1 time in total.
User avatar
wwonderfull
 
 
Posts: 1603
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Conditions

Post by wwonderfull »

WWBman wrote: Tue May 03, 2022 3:01 pm If you are still having problems then it's here as well.
https://file.io/MUO28mLtWwIR
It shows the file you requested has been deleted I can show screen shot.
WWBman
 
 
Posts: 914
Joined: Fri Jan 08, 2010 6:10 pm

Re: Conditions

Post by WWBman »

You beat me to it!
The mediafire file is definitely OK.
WWBman
 
 
Posts: 914
Joined: Fri Jan 08, 2010 6:10 pm

Re: Conditions

Post by WWBman »

Just checked, the free version of file.io does delete after one download.
GPK5050
 
 
Posts: 44
Joined: Thu Apr 26, 2018 4:03 pm

Re: Conditions

Post by GPK5050 »

WWBman wrote: Tue May 03, 2022 9:59 am Hi GPK5050,
I thought I'd have a go at your issue using Pablo's example.
If you haven't solved it yet you can download my project which I think does what you want from:
https://www.mediafire.com/file/esw93unm ... s.wbs/file
If USA or Canada is not selected the states and provinces box goes blank.
Hi WWBman...

This is exactly what I wanted my form to do. Now, let's see if I can replicate it in my form.

Thank you again!!! It's really appreciated!

Greg
GPK5050
 
 
Posts: 44
Joined: Thu Apr 26, 2018 4:03 pm

Re: Conditions

Post by GPK5050 »

WWBman wrote: Tue May 03, 2022 9:59 am Hi GPK5050,
I thought I'd have a go at your issue using Pablo's example.
If you haven't solved it yet you can download my project which I think does what you want from:
https://www.mediafire.com/file/esw93unm ... s.wbs/file
If USA or Canada is not selected the states and provinces box goes blank.
Hi!

Thanks to you WWBman, the form is working perfectly. And I was even able to figure out how to do the same "appearing act" with the text that accompanies the Combo Box!!!

Check it out at:

www.carpenters55th.fun/registration5.php

Thanks again!

Greg
WWBman
 
 
Posts: 914
Joined: Fri Jan 08, 2010 6:10 pm

Re: Conditions

Post by WWBman »

Looks great.
Amazing what you can do with WWB.
Post Reply