Does anyone have any experience with multi-step forms to create / update content? Existing Drupal modules that I've found are pretty old and seem somewhat shaky. I'm guessing that people who've needed this kind of interface wrote custom solutions.
I did wonder if doing some kind of Webform => node submission would do it. Depends on if they need the multistep only for creation, or for editing as well.
Sorry I dont have a ready solution to this. The big issue is of course if you need multistep editing as well as creation, in which case Webform wouldnt help. A custom mutistep form would also be complicated if you decided to be able to add or remove new fields.
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Posted1 day 20 hours ago by Alejandro Cremaschi (argiepiano) on:
No problem, let's see how it evolves.
I'd be happy to provide a suggested version if i could.
I will keep that in mind and try learn this hook chain hopefully very soon. I will...
Posted3 days 7 hours ago by RS Snyder (theflightrs) on:
I could request hashing support, but that's the lazy way
🤣
I would appreciate it if you as an active maintainer would 'officially' add a hashing support...
Hi, i understand the updating obstacle - not worth mentioning - hence it is a wacky (but working) patch until i know what to do. :-)
One of my biggest wishes is to understand the hook...
Posted3 days 7 hours ago by RS Snyder (theflightrs) on:
Comments
If it's just about some simple data, Webform is probably your friend. Then display form submissions in a view.
If it has to be nodes, hook_form_alter() might be your friend.
But maybe @docwilmot has better tips. It seems, he ported/forked the Ctools form wizard.
I did wonder if doing some kind of Webform => node submission would do it. Depends on if they need the multistep only for creation, or for editing as well.
Sorry I dont have a ready solution to this. The big issue is of course if you need multistep editing as well as creation, in which case Webform wouldnt help. A custom mutistep form would also be complicated if you decided to be able to add or remove new fields.
Best bet is to port https://www.drupal.org/project/msnf. It isnt pretty old (2011) but not sure if its shaky.