Domanda

How do I fill out my drupal webform automatically, I have 500 entries to fill out and I can't do it one by one. I try to fill it out automatically directly to phpmyadmin in drupal Database but it doesn't work beacause drupal add more fields in his database (in webform_ submitted_data) so I think it's possible to use a script or use a module to fill it out but I don't know how

È stato utile?

Soluzione

The best module to do it, it's webform import very helpful

Allows delimited data files to be imported as submission (results) into webforms.

This is useful for importing submissions from other systems in to Webform. Can also be used to Edit submissions via Export / Import as long as the CSV has the SID column filled.

Altri suggerimenti

You can use drupal_form_submit() to submit a webform. See this answer over at drupal.stackexchange.com for instructions.

When you've got that working, it should just be a matter of looping over the webforms you want to fill in.

There is a sandbox module for that: Webform Autofill. But I 've never used it so I can be sure it works.

If you have never used a sandbox module you can see more details at the drupal sandbox modules documentation.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top