Can someone please confirm the correct way to upgrade to Webforms 4 from a Webforms 3 + Conditionals 1.0.
Reading the notes here - https://www.drupal.org/node/1616376 - tells me to run updates for Webform 4 and Conditionals 2.x-dev at the same time. Which seems to go well, and I get a notice that my 'webforms using same page conditionals updates to the new conditional system...' after update.php finishes, but no conditionals appear in my webforms.
Reading the Webforms 3 to 4 update docs - https://www.drupal.org/node/1609324 - I am told do disable and uninstall conditionals before doing the webforms update. Have tried this approach as well. Again, no warnings or out-of-place notes after finishing update.php, but no conditionals carried over.
For reference I am attempting this for Webforms 7.x-3.24 and Webform Conditionals 7.x-1.0 to Webforms 4.12.
Any pointers much appreciated. Thanks!
Comments
Comment #2
densolis commentedHi,
I did not see where you mentioned that you loaded and installed D7 tokens prior to doing anything.
Did you delete the old webforms and webform_conditional directories before updating?
Dennis
Comment #3
jndvrk commentedThanks for the quick reply.
Yes, fully deleted the directories prior to copying new ones over.
Tokens have been updated to D7, but I have not done anything webform specific with them.
---
I only have a handful of forms that use conditional, so I just re-did the conditions manually, no biggie, unfortunately don't have much time to look into this with D6 being eol'd soon.
---
If it helps any, on my last attempt I managed to make a little bit of progress. The conditionals did not carry over, but poking around phpmyadmin, there were at least some entries added in the new "webform_conditional" table. This was with updating Conditionals to 2.x-dev along with Webform 4 itself. I also started getting the following warnings - which were probably related to the data in the new conditional table.
Warning: Invalid argument supplied for foreach() in WebformConditionals->topologicalSort() (line 73 of mysite\sites\all\modules\webform\includes\webform.webformconditionals.inc).
Notice: Undefined index: actions in WebformConditionals->topologicalSort() (line 73 of mysite\sites\all\modules\webform\includes\webform.webformconditionals.inc).
This is probably venturing into Webform support's neck of the woods.
I haven't had a chance to try comparing the non-working conditional database entries with a newly created Webform 4 conditional action to see what the differences are. I'll be happy to look if anyone is interested, after I get the site up and fully running in D7.
Comment #4
eL commentedSame problem for me!
I am on clean D7 website with few webforms, Webform 4.12 and Webform conditionals 7.x 1.0 (Webform conditionals 7.x 2.x).
https://www.drupal.org/node/2671854
Comment #5
johnkork commentedI'm having the same problem, no conditionals were exported even if the message at the end of the update is :
A strange behaviour though : doing "Node export" on my webform AFTER THE UPDATE shows my conditionals :
But re-importing this export does not import conditionals anyways...
Anyone found a solution to this problem ?
Comment #6
upperholme commentedMy take on this, based on nothing more than what makes sense to me, is that updating Webform to version 4.x should happen first, as that will presumably create the database tables to enable the Webform module to handle conditionals internally. Once those database changes are in place, then do the update using Webform Conditional 7.x-2.x-dev and it will convert conditionals and write them into the new db tables created by the Webform 4 update.
Then uninstall Webform Conditionals as it is no longer needed.
Doing it for real right now so we'll see...
Comment #7
ficklecatAlso having problems with this. We have too many forms to manually rebuild the conditional logic. I tried the patch at https://www.drupal.org/node/1616376#comment-10865472 but still had no luck, so if anyone does find a solution please share.