Closed (fixed)
Project:
Webform
Version:
7.x-3.18
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2013 at 12:00 UTC
Updated:
7 May 2013 at 16:47 UTC
Greetings
I have a select list with dozens of values.
What i need to achieve is:
If you select option 1, then the next field to appear only has 1 result based on the condition that option 1 was selected.
If you select option 2, then the next field to appear only has 1 result based on the condition that option 2 was selected.
I only want a 1 to 1 relationship. How can i achieve this without creating dozens of conditions over and over. Perhaps 1 place to add everything.
option1 = Code 1234567 only
option 2 = Code 333333 only
option 3 = Code 764325 only
Comments
Comment #1
quicksketchWebform Conditional is a separate project for 3.x. We have built-in conditionals in the 4.x version, but at least for the built-in conditionals in that version, it would require separate rules for each conditional (however they're much faster to make than they are when using the Webform Conditional module).
Comment #2
zunaidt commentedOk so, ive tried to uninstall the webform and the conditional (conditional first then webform), it says " Status message The selected modules have been uninstalled." - But its still in the modules list even after clearing cache!
Based on this, i cannot install the 4.x version. Is there another way i'm supposed to remove the 3.x version so I can try the new alpha6?
Comment #3
quicksketchOh dear... if you uninstalled Webform, then it will have deleted ALL your forms. I hope either you didn't have many or that you made a database backup. :(
Here's a terminology breakdown for you:
Disable module (uncheck the enabled checkbox on the modules page): Prevents the module from running or affecting the site in any way.
Uninstall module (after disabling, using the Uninstall tab on the modules page): Deletes all the database tables and settings related to a module.
Remove module (delete the module from the sites/all/modules directory, using FTP or Git): Removes the module from the module list.
When upgrading Webform, you don't need to do any of these for the Webform module. You just need to drop in the new version over the old one and run update.php. You should probably disable, uninstall, and then remove Webform Conditional though, since it will no longer be necessary.
Comment #4
zunaidt commentedOk, so i just deleted replaced the files in the webform folder and done a manual update check.
4.version is installed and functional, thank you. Having checked it out I can understand how writing conditions is easier than before.
Currently we are able to do the following:
If [Select List] contains "value" then show [Select List]
How can we do this,
If [Select List] contains "value" then show ["value"]
The value can be a single input condition or from another table.
Then i need you to point out where in the database all the conditions are written to, because even though this solution can work I will need to add a few thousand conditions, maybe by importing
What we trying to achieve is a Country > City > Suburb > Zip code sort of methodology. The ZIP code "Value" is the most important result based on the fact that the other 3 are met. I cant use prepopulated lists as we not really using Country > City > Suburb > Zip code, but the logic is the same.
If you select the Country, only those Cities come up. ( Only 196 values, with 1 Select List - Easy to make this condition)
If you select a City, only those Suburbs come up. (So I need 196 conditions here dont I? )
If you select a Suburb, then only 1 "VALUE" must be displayed which is the actual "Suburb code" - Can be read only too.
Comment #5
quicksketchWebform doesn't have any ability to do this. Because Webform doesn't make a server request when calculating its same-page conditionals, selecting options from a table isn't possible other than making all the individual rules.
If you want to build out the conditionals manually in the database, they're in the "webform_conditional" and "webform_conditional_rules" tables.
Comment #6
zunaidt commentedGreat, will give that a shot thank you.